Implements SavedGameDataStorer using local disk files. More...
Classes | |
class | SavedGameInfo |
Public Types | |
enum | BasePath { PersistentDataPath , DataPath , Custom } |
Public Member Functions | |
virtual void | Start () |
virtual string | GetSaveGameFilename (int slotNumber) |
virtual string | GetSavedGameInfoFilename () |
virtual void | LoadSavedGameInfoFromFile () |
virtual void | UpdateSavedGameInfoToFile (int slotNumber, SavedGameData savedGameData) |
override bool | HasDataInSlot (int slotNumber) |
override void | StoreSavedGameData (int slotNumber, SavedGameData savedGameData) |
override SavedGameData | RetrieveSavedGameData (int slotNumber) |
override void | DeleteSavedGameData (int slotNumber) |
Public Member Functions inherited from PixelCrushers.SavedGameDataStorer | |
bool | HasDataInSlot (int slotNumber) |
Return true if the specified slot contains a saved game. | |
void | StoreSavedGameData (int slotNumber, SavedGameData savedGameData) |
Store saved game data in the specified slot. | |
SavedGameData | RetrieveSavedGameData (int slotNumber) |
Retrieve saved game data from the specified slot, or null if no saved game in the slot. | |
void | DeleteSavedGameData (int slotNumber) |
Delete the saved game from the specified slot if present. | |
virtual IEnumerator | StoreSavedGameDataAsync (int slotNumber, SavedGameData savedGameData) |
Asynchronously store the saved game data in the specified slot. | |
Static Public Member Functions | |
static void | WriteStringToFile (string filename, string data) |
static string | ReadStringFromFile (string filename) |
Public Attributes | |
BasePath | storeSaveFilesIn = BasePath.PersistentDataPath |
string | customPath |
bool | encrypt = true |
string | encryptionPassword = "My Password" |
Protected Member Functions | |
virtual string | GetBasePath () |
virtual bool | VerifySavedGameInfoFile (string saveInfoFilename) |
virtual void | WriteSavedGameInfoToDisk () |
Protected Attributes | |
List< SavedGameInfo > | m_savedGameInfo = null |
Properties | |
List< SavedGameInfo > | savedGameInfo [get] |
bool | debug [get, set] |
Properties inherited from PixelCrushers.SavedGameDataStorer | |
virtual float | progress [get, protected set] |
Return the current progress (0-1) of the current async save operation. | |
Implements SavedGameDataStorer using local disk files.
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinestatic |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinestatic |
string PixelCrushers.DiskSavedGameDataStorer.customPath |
bool PixelCrushers.DiskSavedGameDataStorer.encrypt = true |
string PixelCrushers.DiskSavedGameDataStorer.encryptionPassword = "My Password" |
|
protected |
BasePath PixelCrushers.DiskSavedGameDataStorer.storeSaveFilesIn = BasePath.PersistentDataPath |
|
getset |
|
getprotected |