-
Notifications
You must be signed in to change notification settings - Fork 3
SaveLoader_ClassAPI
CG-Tespy edited this page May 4, 2020
·
2 revisions
Abstract class for MonoBehaviours that handle loading some form of save data through a SaveDataItem instance. Comes in two flavors: generic and non-generic. It's best to inherit from the generic one if you're looking to extend what save data types the system can load.
virtual int LoadPriority { get; }
bool Load(SaveDataItem item)
- Tries to load the save data in the passed item. Returns true if successful, false otherwise.
abstract bool Load(TSaveData data)
- Like the superclass version, except it doesn't need to check if the input can be loaded. The input should already be what the loader was made to work with.