Skip to content

SaveHolder

Amethyst-szs edited this page Nov 26, 2023 · 1 revision

What is the SaveHolder

This singleton holds the current data for your slot and common. When enabling the plugin, this class is registered as an autoload. This mostly just exists to hold your current slot and the common data, as well as allow resetting these to default.

Accessing Slot & Common

slot and common are both variables in the SaveHolder singleton. These both use the scripts you can create in the SaveData tab. Use these to read and modify anything related to your slot save data or your common save data. It is worth noting that common is automatically created or read from disk on startup.

Reset Functions

reset_slot()

Resets the data in the slot variable to default

reset_common()

Resets the data in the common variable to default

reset_all()

Resets the data in the slot and common variable to default. Not recommended unless you're including a full "factory reset" style feature

Clone this wiki locally