Skip to content

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.

Table of Contents

Non-Generic Version

Public Properties

virtual int LoadPriority { get; }

Public Methods

bool Load(SaveDataItem item)

  • Tries to load the save data in the passed item. Returns true if successful, false otherwise.

Generic Version (Type Arg: TSaveData)

Public Methods

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.

Clone this wiki locally