-
Notifications
You must be signed in to change notification settings - Fork 6
/
ISkillSetsUsersStorage.cs
47 lines (42 loc) · 1.28 KB
/
ISkillSetsUsersStorage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using Steamworks;
namespace SkillSets
{
/// <summary>
/// Abstraction of data storing
/// </summary>
public interface ISkillSetsUsersStorage
{
/// <summary>
/// Load all necessary stuff for the storage
/// </summary>
void Load();
/// <summary>
/// Unload all stuff created in Load()
/// </summary>
void Unload();
/// <summary>
/// Save the steamId/value to the storage
/// </summary>
/// <returns>Saved or not</returns>
/// <param name="steamId">Steam identifier.</param>
/// <param name="skillSetName">The name of the SkillSet</param>
bool Save(CSteamID steamId, string skillSetName);
/// <summary>
/// Remove the specified steamId.
/// </summary>
/// <returns>removed or not</returns>
/// <param name="steamId">Steam identifier.</param>
bool Remove(CSteamID steamId);
/// <summary>
/// Save Periodically the storage.
/// Avoid to let the player decide when the storage will be written on disk
/// </summary>
void PeriodicSave();
/// <summary>
/// Get if the specified steamId skills should be maxed or not
/// </summary>
/// <returns>The name of the SkillSet</returns>
/// <param name="steamId">Steam identifier.</param>
string Get(CSteamID steamId);
}
}