SimObjectMemento
Engine/source/console/simObjectMemento.h
This simple class is used to store an SimObject and its state so it can be recreated at a later time.
Protected Attributes
bool
The captured object's name.
Public Functions
bool
hasState()
Returns true if we have recorded state.
Detailed Description
This simple class is used to store an SimObject and its state so it can be recreated at a later time.
The success of restoring the object completely depends on the results from SimObject::write().
Protected Attributes
bool mIsDatablock
String mObjectName
The captured object's name.
UTF8 * mState
The captured object state.
Public Functions
SimObjectMemento()
~SimObjectMemento()
hasState()
Returns true if we have recorded state.
restore()
save(SimObject * object)