forked from ChemiKhazi/UnityToolbag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameSaveSystemSettings.cs
42 lines (38 loc) · 1.22 KB
/
GameSaveSystemSettings.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
namespace UnityToolbag
{
/// <summary>
/// A settings object used to initialize the GameSaveSystem.
/// </summary>
public class GameSaveSystemSettings
{
/// <summary>
/// The name of the company used for constructing the save location. Can be null.
/// </summary>
public string companyName;
/// <summary>
/// The name of the game for constructing the save lcoation.
/// </summary>
public string gameName;
/// <summary>
/// Whether or not to use rolling backups for game saves.
/// </summary>
public bool useRollingBackups = true;
/// <summary>
/// Number of backups to store if useRollingBackups is <c>true</c>.
/// </summary>
public int backupCount = 2;
/// <summary>
/// Creates a copy of the settings object.
/// </summary>
public GameSaveSystemSettings Clone()
{
return new GameSaveSystemSettings
{
companyName = this.companyName,
gameName = this.gameName,
useRollingBackups = this.useRollingBackups,
backupCount = this.backupCount,
};
}
}
}