PixelCrushers.SaveSystemMethods Class Reference

Provides inspector-selectable methods to control SaveSystem. More...

Inheritance diagram for PixelCrushers.SaveSystemMethods:
Collaboration diagram for PixelCrushers.SaveSystemMethods:

Public Member Functions

void SaveSlot (int slotNumber)
 Saves the current game in the specified slot. More...
 
void LoadFromSlot (int slotNumber)
 Loads the game previously-saved in the specified slot. More...
 
void LoadScene (string sceneNameAndSpawnpoint)
 Changes scenes. More...
 
void RestartGame (string startingSceneName)
 Resets all saved game data and restarts the game at the specified scene. More...
 
void LoadOrRestart (int slotNumber)
 Load the specified slot, or restart the game from the default starting scene if no save exists yet. More...
 
void RecordSavedGameData ()
 Records the current game state into the Save System. More...
 
void ApplySavedGameData ()
 Applies the most recently recorded game state. More...
 

Public Attributes

string defaultStartingSceneName
 

Detailed Description

Provides inspector-selectable methods to control SaveSystem.

Member Function Documentation

void PixelCrushers.SaveSystemMethods.ApplySavedGameData ( )

Applies the most recently recorded game state.

void PixelCrushers.SaveSystemMethods.LoadFromSlot ( int  slotNumber)

Loads the game previously-saved in the specified slot.

Parameters
slotNumberSlot to load.
void PixelCrushers.SaveSystemMethods.LoadOrRestart ( int  slotNumber)

Load the specified slot, or restart the game from the default starting scene if no save exists yet.

Parameters
slotNumberSlot number to load.
void PixelCrushers.SaveSystemMethods.LoadScene ( string  sceneNameAndSpawnpoint)

Changes scenes.

You can optionally specify a player spawnpoint by adding '@' and the spawnpoint GameObject name.

Parameters
sceneNameAndSpawnpointScene name followed by an optional at-sign and spawnpoint name.
void PixelCrushers.SaveSystemMethods.RecordSavedGameData ( )

Records the current game state into the Save System.

void PixelCrushers.SaveSystemMethods.RestartGame ( string  startingSceneName)

Resets all saved game data and restarts the game at the specified scene.

Parameters
startingSceneNameScene to restart at.
void PixelCrushers.SaveSystemMethods.SaveSlot ( int  slotNumber)

Saves the current game in the specified slot.

Parameters
slotNumberslot to save.

Member Data Documentation

string PixelCrushers.SaveSystemMethods.defaultStartingSceneName

The documentation for this class was generated from the following file: