Skip to content

SaveData_ClassAPI

CG-Tespy edited this page Jul 30, 2019 · 2 revisions

The abstract base class of all save data that the loaders and savers work with (not to be confused with Fungus's built-in SaveData class). Subclass this when extending the system to save data types that the system doesn't support by default.

Namespace: CGTUnity.Fungus.SaveSystem

Public Properties

string SceneName

  • Readable: yes
  • Writable: yes
  • Contains the name of the currently-active scene at the time of this SaveData's creation. Applies only if the right signal was invoked in the subclass's constructor.

Constructors

SaveData()

  • Default.
SaveData(string sceneName)
  • Allows you to initialize this SaveData with a scene name.
SaveData(SaveData other)
  • Turns this SaveData into a deep copy of the passed one.

Public Functions

virtual void SetFrom(SaveData other)

  • Turns the calling SaveData into a deep copy of the passed SaveData.
virtual void Clear()
  • Clears all state this SaveData contains.

Clone this wiki locally