Events
WhenSaverStarts
An action called when the game starts saving.
WhenSaveFinished
An action called when the game finishes saving.
WhenLoadStarts
An action called when the game starts loading.
WhenLoadFinished
An action called when the game finishes loading.
WhenEncodingStarts
An action called when the game starts encoding.
WhenEncodingFinished
An action called when the game completes encoding.
WhenDecodingStarts
An action called when the game starts decoding.
WhenDecodingFinished
An action called when the game finishes decoding.
WhenLateIntialization
Triggered
An action called when late initialization starts.
Properties
LoadAttempted
Determines whether or not this class should be added to the save.
DataLoaded
Return true if data has been loaded since the game started.
EncodedData
Data encoded by Encoder of currently selected EncoderType is placed here. Make sure you have called EncodeGame(mono, false), or this will be null. Additionally, if you encrypted while encoding get data from EncrypedAndEncodedData instead.
EncryptedAndEncoded
Data encrypted and encoded by Encoder of currently selected EncoderType is placed here. Make sure you have called EncodeGame(mono, true) and that Encrypt == true, or this will be null. byte[0][] is data, byte[1[] is key and byte[2][] is iv.
Encrypt
If true encrypts data before saving or encoding and attempts to decrypt data when loading or decoding.
Methods
AddToSave
Pass an ISaveable through this class to add it to the list of things to be saved.
RemoveFromSave
Remove an ISaveable from the list of things to be saved.
SaveIncludes
The function that is called during initialization. On GameLoader, it manages the start of game loading and late initialization.
SaveGame
Call this function to start a game save.
LoadGame
Call this function to start a game load.
DeleteGameData
Deletes the game data.
EncodeGameData
Encodes the games data. When the process is finished the data can be retrieved in EncodedData or, if encrypted, in EncryptedAndEncodedData.
DecodeGame
Decodes game data and applies it to game state.
ClearSaveData
Clears the data from RAM, but does not wipe data from drive.