-
Notifications
You must be signed in to change notification settings - Fork 0
SaveAccessor
The save accessor is your one stop shop for writing and reading your save data! When enabling the plugin, this class is registered as an autoload. The whole thing can be managed by a couple extremely simple functions and signals, detailed below.
Member variable storing which save slot index is active. Emits "active_slot_changed" changed to a different value
Sets the "active_save_slot", and emits "active_slot_changed" if the new slot is different
Writes to the active save slot, and emits "save_slot_complete" when successful
Writes to a specific save slot index, and emits "save_slot_complete" when successful
Writes the common data to disk, and emits "save_common_complete" when successful
Loads data from the active save slot, and emits "load_slot_complete" when successful
Loads data from a specific save slot index, and emits "load_slot_complete" when successful
Loads data from common data on disk, and emits "load_common_complete" when successful
Checks if a file exists for the active save slot, does not ensure the data inside is valid
Checks if a file exists for a specific save slot index, does not ensure the data inside is valid
Emitted when the SaveAccessor starts reading/writing data on its thread
Emitted when the current save or load is finished, regardless of success
Emitted when saving to a slot is completed successfully
Emitted when saving the common data is completed successfully
Emitted when loading a slot is completed successfully
Emitted when loading the common data is completed successfully
Emitted when the active_save_slot is updated to a new, different value
Emitted when a save call fails
Emitted when a load call fails