SavestateReaderWriterPlayerPrefs

class SavestateReaderWriterPlayerPrefs : ISavestateWriter, ISavestateReader

Example implementation of the Savestate-related interfaces, saving and loading values using Unity's PlayerPrefs.

Methods

bool GetBool(string key)

T[] GetComposed< T >(string key)

T[] GetComposed< T >(string key, string delimiter)

float GetFloat(string key)

int GetInt(string key)

string GetString(string key)

bool HasKey(string key)

void PostLoad()

void PostSave()

void PreLoad()

void PreSave()

void SetBool(string key, bool value)

void SetComposed(string key, params object[] objs)

void SetComposed(string key, string delimiter, params object[] objs)

void SetFloat(string key, float value)

void SetInt(string key, int value)

void SetString(string key, string value)