Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
virtual string | GetDefaultSaveLabel (int saveID) |
Returns the default label of a save file. This is not the same as the filename - it is what's displayed in SavesList menus More... | |
virtual void | DeleteAll (int profileID) |
Deletes all save files associated with a given profile More... | |
virtual void | Delete (SaveFile saveFile, System.Action< bool > callback=null) |
Deletes a single save file More... | |
virtual void | Save (SaveFile saveFile, string dataToSave, System.Action< bool > callback) |
Requests that game data be saved to disk. When saving is complete, it needs to confirm the output to SaveSystem.OnCompleteSave for the save to be recorded. More... | |
virtual void | Load (SaveFile saveFile, bool doLog, System.Action< SaveFile, string > callback) |
Requests that save game data be loaded from disk. The resulting data needs to be sent back to SaveSystem.ReceiveLoadedData for it to actually be processed. More... | |
virtual bool | SupportsSaveThreading () |
virtual List< SaveFile > | GatherSaveFiles (int profileID) |
Reads the disk for all save files associated with a given profile More... | |
virtual SaveFile | GetSaveFile (int saveID, int profileID) |
Reads the disk for a save file with a specific ID More... | |
virtual List< SaveFile > | GatherImportFiles (int profileID, int boolID, string separateProductName, string separateFilePrefix) |
Reads the disk for all save files associated with a given profile from another game, to allow for the importing of data between games More... | |
virtual void | SaveScreenshot (SaveFile saveFile) |
Saves a screenshot associated with a save file More... | |
Protected Member Functions | |
virtual List< SaveFile > | GatherSaveFiles (int profileID, bool isImport, int boolID, string separateFilePrefix) |
virtual SaveFile | GetSaveFile (int saveID, int profileID, bool isImport, int boolID, string separateFilePrefix) |
virtual string | GetSaveFilename (int saveID, int profileID=-1) |
virtual string | GetImportFilename (int saveID, string filePrefix, int profileID=-1) |
virtual string | GetTimeString (DateTime dateTime) |
Static Protected Attributes | |
const string | screenshotKey = "_screenshot" |
Properties | |
virtual int | MaxSaves [get] |
A save-file handler that stores save-games as separate keys in the PlayerPrefs
|
virtual |
Deletes a single save file
saveFile | The SaveFile container which stores information about the save to delete |
callback | An optional callback that contains a bool that's True if the delete was succesful |
Implements AC.iSaveFileHandler.
|
virtual |
Deletes all save files associated with a given profile
profileID | The ID number of the profile to delete saves for, or 0 if profiles are not enabled. |
Implements AC.iSaveFileHandler.
|
virtual |
Reads the disk for all save files associated with a given profile from another game, to allow for the importing of data between games
profileID | The ID number of the profile to search save files for, or 0 if profiles are not enabled |
boolID | The ID number of the Global Boolean variable that must be true in the file's data in order for it to be included, or -1 if this feature is not used |
separateProductName | The 'Product name' of the Unity product to import files from |
separateFilePrefix | The 'Save filename' field of the AC project to import files from, as set in the Settings Manager |
Implements AC.iSaveFileHandler.
|
virtual |
Reads the disk for all save files associated with a given profile
profileID | The ID number of the profile to search save files for, or 0 if profiles are not enabled |
Implements AC.iSaveFileHandler.
|
virtual |
Returns the default label of a save file. This is not the same as the filename - it is what's displayed in SavesList menus
saveID | The ID number of the save game |
Implements AC.iSaveFileHandler.
|
virtual |
Reads the disk for a save file with a specific ID
saveID | The ID number of the save to search for |
profileID | The ID number of the save file's associated profile, or 0 if profiles are not enabled |
Implements AC.iSaveFileHandler.
|
virtual |
Requests that save game data be loaded from disk. The resulting data needs to be sent back to SaveSystem.ReceiveLoadedData for it to actually be processed.
saveFile | The SaveFile container which stores information about the save to load |
doLog | If True, a log should be shown in the Console once the data has been read |
callback | A callback containing the SaveFile, and the save-data string |
Implements AC.iSaveFileHandler.
|
virtual |
Requests that game data be saved to disk. When saving is complete, it needs to confirm the output to SaveSystem.OnCompleteSave for the save to be recorded.
saveFile | The SaveFile container which stores information about the file. Note that only the saveID, profileID and label have been correctly assigned by this point |
dataToSave | The data to save, as a serialized string |
callback | A callback containing a bool that's True if the save was successful |
Implements AC.iSaveFileHandler.
|
virtual |
Saves a screenshot associated with a save file
saveFile | A data container for both the texture, and the associate save/profile IDs |
Implements AC.iSaveFileHandler.
|
virtual |
Returns true if threading is supported when saving to disk
Implements AC.iSaveFileHandler.