LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
WorldStateabstract

Inherited by WorldStateBinary.

Public Member Functions

delegate void Callback ()
 
void Clear ()
 
void DeleteSave (string saveName)
 
void GetState (StateObject state)
 
bool HasSave (string saveName)
 
void Load (string saveName)
 
void Save (string saveName)
 
void SetState (StateObject state)
 

Static Public Member Functions

static void ClearCallbacks ()
 
static void DeleteSave ()
 
static bool HasSave ()
 
static void Load ()
 
static void Reset ()
 
static void Save ()
 

Static Public Attributes

static Callback cleanupCallbacks
 
static WorldState instance
 
static Callback loadCallbacks
 
static Callback saveCallbacks
 
static string saveFileName = "SaveFile"
 

Protected Member Functions

void GetValues< T > (int hashKey, StateWrapper< T >[] arr)
 
void SetValues< T > (int hashKey, StateWrapper< T >[] arr)
 

Member Function Documentation

◆ GetValues< T >()

void GetValues< T > ( int hashKey,
StateWrapper< T >[] arr )
abstractprotected
Type Constraints
T :struct 

◆ SetValues< T >()

void SetValues< T > ( int hashKey,
StateWrapper< T >[] arr )
abstractprotected
Type Constraints
T :struct