Skip to content

SaveReader_ClassAPI

CG-Tespy edited this page May 4, 2020 · 2 revisions

Reads saves from disk into GameSaveDatas for the rest of the system to work with.

Inherits from: SaveDiskAccessor
Namespace: CGTUnity.Fungus.SaveSystem

Inspector Fields

protected bool readEncrypted

  • Whether or not this should interpret the saves it reads as encrypted. Experimental.

Public Fields

UnityAction GameSaveRead

  • Invoked when this particular SaveWriter reads GameSaveData. Params: saveData, filePath, fileName

Public Methods

virtual GameSaveData ReadOneFromDisk(string filePath)

  • Reads a save file at the passed filePath, returning a GameSaveData if appropriate.
virtual void ReadAllFromDisk(string saveDir, ICollection outputTo = null)
  • Reads GameSaveDatas from the passed directory, and into the passed collection (if appropriate).

Clone this wiki locally