Holds the data for a saved game. More...
Classes | |
class | SaveRecord |
Holds the data returned by a Saver along with the Saver's key and the index of the scene that the Saver was in. More... | |
Public Member Functions | |
void | OnBeforeSerialize () |
void | OnAfterDeserialize () |
string | GetData (string key) |
Retrieves the previously-saved data for a Saver. More... | |
void | SetData (string key, int sceneIndex, string data) |
Stores a Saver's data. More... | |
void | DeleteObsoleteSaveData (int currentSceneIndex) |
Removes all save records except those in the current scene and those that are configured to remember across scene changes. More... | |
Properties | |
string | sceneName [get, set] |
The scene in which the game was saved. More... | |
Holds the data for a saved game.
void PixelCrushers.SavedGameData.DeleteObsoleteSaveData | ( | int | currentSceneIndex | ) |
Removes all save records except those in the current scene and those that are configured to remember across scene changes.
currentSceneIndex |
string PixelCrushers.SavedGameData.GetData | ( | string | key | ) |
void PixelCrushers.SavedGameData.OnAfterDeserialize | ( | ) |
void PixelCrushers.SavedGameData.OnBeforeSerialize | ( | ) |
void PixelCrushers.SavedGameData.SetData | ( | string | key, |
int | sceneIndex, | ||
string | data | ||
) |
Stores a Saver's data.
key | |
sceneIndex | |
data |
|
getset |
The scene in which the game was saved.