Torque3D Documentation / _generateds / SimObjectMemento

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.

More...

Protected Attributes

The captured object's name.

UTF8 *

The captured object state.

Public Functions

bool

Returns true if we have recorded state.

save(SimObject * object)

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)