Adventure Creator  1.69.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.RememberVariables Class Reference
Inheritance diagram for AC.RememberVariables:
AC.Remember AC.ConstantID

Public Member Functions

override string SaveData ()
 Serialises appropriate GameObject values into a string. Overriden by subclasses. More...
 
override void LoadData (string stringData)
 Deserialises a string of data, and restores the GameObject to its previous state. Overridden by subclasses. More...
 
- Public Member Functions inherited from AC.ConstantID
virtual void LoadData (string stringData, bool restoringSaveFile)
 A base function, overridden by subclasses when loading data. More...
 
int AssignInitialValue (bool forcePrefab=false)
 Sets a new Constant ID number. More...
 
void SetNewID_Prefab ()
 

Properties

bool LoadedData [get]
 
- Properties inherited from AC.Remember
bool SavePrevented [get, set]
 

Additional Inherited Members

- Public Attributes inherited from AC.ConstantID
int constantID
 
bool retainInPrefab = false
 
AutoManual autoManual = AutoManual.Automatic
 
- Protected Member Functions inherited from AC.ConstantID
bool GameIsPlaying ()
 
void Update ()
 
bool [] StringToBoolArray (string _string)
 
int [] StringToIntArray (string _string)
 
float [] StringToFloatArray (string _string)
 
string [] StringToStringArray (string _string)
 
string ArrayToString< T > (T[] _list)
 
- Protected Attributes inherited from AC.Remember
bool savePrevented = false
 

Detailed Description

This script is attached to Variables components in the scene we wish to save the state of.

Member Function Documentation

◆ LoadData()

override void AC.RememberVariables.LoadData ( string  stringData)
virtual

Deserialises a string of data, and restores the GameObject to its previous state. Overridden by subclasses.

Parameters
stringDataThe data, serialised as a string

Reimplemented from AC.ConstantID.

◆ SaveData()

override string AC.RememberVariables.SaveData ( )
virtual

Serialises appropriate GameObject values into a string. Overriden by subclasses.

Returns
The data, serialised as a string (empty in the base class)

Reimplemented from AC.ConstantID.

Property Documentation

◆ LoadedData

bool AC.RememberVariables.LoadedData
get

Checks if data has been loaded for this component.