Skip to content

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

Table of Contents

Non-generic Version

Non-Generic Public Methods

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.

Generic Version

Notes

  • 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.

Clone this wiki locally