FrameIT
Stage.PlayerRecord Class Reference

Represents a save slot. More...

Inheritance diagram for Stage.PlayerRecord:
IJSONsavable< PlayerRecord >

Public Member Functions

 PlayerRecord ()
 Empty constructor for JsonConverter More...
 
 PlayerRecord (string name, Stage mother)
 Standard Constructor. More...
 
PlayerRecord Clone ()
 Copies a specified PlayerRecord More...
 
void CopyExposedSolutionFacts (Stage mother)
 Copies all elements from mother .solution.ExposedSolutionFacts to factState More...
 
- Public Member Functions inherited from IJSONsavable< PlayerRecord >
virtual string _IJGetName (string name)
 
virtual List< Directories > _IJGetHierarchie (List< Directories > hierarchie_base)
 
virtual bool _IJGetRawObject (out T payload, string path)
 
virtual T _IJPreProcess (T payload)
 
virtual T _IJPostProcess (T payload)
 
bool store (List< Directories > hierarchie, string name, bool use_install_folder=false, bool overwrite=true, bool deep_store=true)
 
bool store_children (List< Directories > hierarchie, string name, bool use_install_folder=false, bool overwrite=true, bool deep_store=true)
 

Public Attributes

bool solved = false
 Wether this save has solved the Stage which contains it. More...
 
long date = System.DateTime.Now.ToBinary()
 When this save was created (not modified!). More...
 
double seconds = 0
 The time spent within this save since creation. More...
 
FactRecorder factState = new()
 Stage this belongs to More...
 

Properties

string name = null [getset]
 save game file name More...
 
string path = null [getset]
 
- Properties inherited from IJSONsavable< PlayerRecord >
string name [getset]
 
string path [getset]
 

Static Private Member Functions

static PlayerRecord ()
 

Additional Inherited Members

- Static Public Member Functions inherited from IJSONsavable< PlayerRecord >
static bool store (List< Directories > hierarchie, string name, T payload, bool use_install_folder=false, bool overwrite=true, bool deep_store=true)
 
static bool store_children (List< Directories > hierarchie, string name, T payload, bool use_install_folder=false, bool overwrite=true, bool deep_store=true)
 
static bool load_children (List< Directories > hierarchie, string name, ref T raw_payload, bool use_install_folder=false, bool deep_load=true, bool post_process=true)
 
static bool load (List< Directories > hierarchie, string name, out T payload, bool use_install_folder=false, bool deep_load=true, bool post_process=true)
 
static T postprocess (T payload)
 
static T preprocess (T payload)
 
static void delete_children (List< Directories > hierarchie, string name, bool use_install_folder=false, int skip_last_children=0)
 
static bool delete (List< Directories > hierarchie, string name, bool use_install_folder=false)
 
- Static Public Attributes inherited from IJSONsavable< PlayerRecord >
static readonly IJSONsavable< T > Instance
 
static readonly FieldInfo[] JsonSaveableFields
 
static readonly FieldInfo[] JsonAutoPreProcessFields
 
static readonly FieldInfo[] JsonAutoPostProcessFields
 
static readonly FieldInfo[] JsonSeperateFields
 
- Static Protected Attributes inherited from IJSONsavable< PlayerRecord >
static List< Directories > hierarchie
 

Detailed Description

Represents a save slot.

Constructor & Destructor Documentation

◆ PlayerRecord() [1/3]

static Stage.PlayerRecord.PlayerRecord ( )
staticprivate

◆ PlayerRecord() [2/3]

Stage.PlayerRecord.PlayerRecord ( )

Empty constructor for JsonConverter

◆ PlayerRecord() [3/3]

Stage.PlayerRecord.PlayerRecord ( string  name,
Stage  mother 
)

Standard Constructor.

Parameters
namesets name
motherto initialise from

Member Function Documentation

◆ Clone()

PlayerRecord Stage.PlayerRecord.Clone ( )

Copies a specified PlayerRecord

Returns
a copied PlayerRecord

◆ CopyExposedSolutionFacts()

void Stage.PlayerRecord.CopyExposedSolutionFacts ( Stage  mother)

Copies all elements from mother .solution.ExposedSolutionFacts to factState

Parameters
mothercopies from here

Member Data Documentation

◆ date

long Stage.PlayerRecord.date = System.DateTime.Now.ToBinary()

When this save was created (not modified!).

◆ factState

FactRecorder Stage.PlayerRecord.factState = new()

Stage this belongs to

Stage progress.

◆ seconds

double Stage.PlayerRecord.seconds = 0

The time spent within this save since creation.

◆ solved

bool Stage.PlayerRecord.solved = false

Wether this save has solved the Stage which contains it.

Property Documentation

◆ name

string Stage.PlayerRecord.name = null
getset

save game file name

◆ path

string Stage.PlayerRecord.path = null
getset

The documentation for this class was generated from the following file: