Interface UM_iSavedGamesClient
A client to interact with saved games functionality.
Namespace: SA.CrossPlatform.GameServices
Assembly: cs.temp.dll.dll
Syntax
public interface UM_iSavedGamesClient
Methods
Delete(UM_iSavedGameMetadata, Action<SA_Result>)
Deletes a specific saved game.
Declaration
void Delete(UM_iSavedGameMetadata game, Action<SA_Result> callback)
Parameters
Type | Name | Description |
---|---|---|
UM_iSavedGameMetadata | game | |
Action<SA_Result> | callback |
FetchSavedGames(Action<UM_SavedGamesMetadataResult>)
Retrieves all available saved games.
Declaration
void FetchSavedGames(Action<UM_SavedGamesMetadataResult> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<UM_SavedGamesMetadataResult> | callback |
LoadGameData(UM_iSavedGameMetadata, Action<UM_SavedGameDataLoadResult>)
Loads specific saved game data.
Declaration
void LoadGameData(UM_iSavedGameMetadata game, Action<UM_SavedGameDataLoadResult> callback)
Parameters
Type | Name | Description |
---|---|---|
UM_iSavedGameMetadata | game | |
Action<UM_SavedGameDataLoadResult> | callback |
LoadGameWithMeta(UM_iSavedGameMetadata, Action<UM_SavedGameDataLoadResult>)
Loads specific saved game data with attempt to get additional meta data out of it.
Declaration
void LoadGameWithMeta(UM_iSavedGameMetadata game, Action<UM_SavedGameDataLoadResult> callback)
Parameters
Type | Name | Description |
---|---|---|
UM_iSavedGameMetadata | game | game to load. |
Action<UM_SavedGameDataLoadResult> | callback | action result callback. |
SaveGame(String, Byte[], Action<SA_Result>)
Saves game data under the specified name. If save with such name already exists, save game data will be replaced.
Declaration
void SaveGame(string name, byte[] data, Action<SA_Result> callback)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Byte[] | data | |
Action<SA_Result> | callback |
SaveGameWithMeta(String, Byte[], UM_SaveInfo, Action<SA_Result>)
Saves game data under the specified name. If save with such name already exists, save game data will be replaced.
Declaration
void SaveGameWithMeta(string name, byte[] data, UM_SaveInfo meta, Action<SA_Result> callback)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Byte[] | data | |
UM_SaveInfo | meta | |
Action<SA_Result> | callback |