-
Notifications
You must be signed in to change notification settings - Fork 3
DataSaver_ClassAPI
CG-Tespy edited this page Jul 30, 2019
·
2 revisions
Abstract class for objects meant to create save data in a scene. The generic version, which subclasses this, has you define said type.
Inherits from: MonoBehaviour
Implements: ISaveDataItemsEncoder
Namespace: CGTUnity.Fungus.SaveSystem
abstract IList<SaveDataItem> CreateItems()
- Returns the SaveData this is primarily for into an IList of SaveDataItems. For non-GameSaver subclasses, it's to help the GameSaver do its job.
- The type argument has to be a class that subclasses this system's SaveData.
- Has a protected field containing the type of said type argument. You may want to subclass this instead of the non-generic version, so you can set the SaveDataItems' DataType property to the type object's Name property.