Savestate

class Savestate : ScriptableObject

Represents a collection of GlobalVariable objects. By using Save() and Load(), the values of the GlobalVariable objects are saved or loaded by using the provided ISavestateWriter or ISavestateReader, respectively.

Methods

void Load()

Loads the values for all GlobalVariables in the list using the provided keys. The defaultReader registered in the SavestateSettings class is used for deserialization.

void Load(ISavestateReader reader)

Loads the values for all GlobalVariables in the list using the provided keys.

void Save()

Saves the values of all GlobalVariables in the list, mapped to the provided keys. The defaultWriter registered in the SavestateSettings class is used for serialization.

void Save(ISavestateWriter writer)

Saves the values of all GlobalVariables in the list, mapped to the provided keys.