Interface IGameSaveManager
Provides management services for a specific game.
Namespace: Snowflake.Orchestration.Saving
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IGameSaveManager
Methods
CreateProfile(String, String, SaveManagementStrategy)
Creates a profile for a game.
Declaration
ISaveProfile CreateProfile(string profileName, string saveType, SaveManagementStrategy managementStrategy)
Parameters
| Type | Name | Description |
|---|---|---|
| System. |
profileName | The name of the save profile to use. |
| System. |
saveType | The type of the same this profile is of. |
| Save |
managementStrategy | The management strategy to use to manage save history. |
Returns
| Type | Description |
|---|---|
| ISave |
A new, empty save profile. |
DeleteProfile(Guid)
Deletes the specified save profile.
Declaration
void DeleteProfile(Guid guid)
Parameters
| Type | Name | Description |
|---|---|---|
| System. |
guid | The unique profile GUID. |
GetProfile(Guid)
Gets the profile specified by the GUID, or null otherwise.
Declaration
ISaveProfile GetProfile(Guid profileId)
Parameters
| Type | Name | Description |
|---|---|---|
| System. |
profileId | The unique profile GUID. |
Returns
| Type | Description |
|---|---|
| ISave |
The save profile if it exists, null if it does not. |
GetProfiles()
Gets all save profiles for this game.
Declaration
IEnumerable<ISaveProfile> GetProfiles()
Returns
| Type | Description |
|---|---|
| System. |
All save profiles for this game. |
GetProfiles(String)
Gets all save profiles with the provided save type.
Declaration
IEnumerable<ISaveProfile> GetProfiles(string saveType)
Parameters
| Type | Name | Description |
|---|---|---|
| System. |
saveType | The type of the save. |
Returns
| Type | Description |
|---|---|
| System. |
All save profiles with the provided save type. |