Torque3D Documentation / _generateds / StateMachineComponent

StateMachineComponent

Engine/source/T3D/components/game/stateMachineComponent.h

More...

Private Types

Parent 

Public Attributes

Protected Attributes

Public Functions

DECLARE_CALLBACK(void , onStateChange , () )
bool

Called when the object is added to the sim.

onDynamicModified(const char * slotName, const char * newValue)

Called when a dynamic field is modified.

Called when the object is removed from the sim.

onStaticModified(const char * slotName, const char * newValue)

Called when a static field is modified.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

setStateMachineFile(const char * fileName)

Instructs this object to read state data previously packed with packUpdate.

Public Static Functions

bool
_setSMFile(void * object, const char * index, const char * data)

Detailed Description

Private Types

typedef Component Parent 

Public Attributes

StateMachine mStateMachine 

Protected Attributes

StringTableEntry mStateMachineFile 

Public Functions

StateMachineComponent()

~StateMachineComponent()

_onResourceChanged(const Torque::Path & path)

DECLARE_CALLBACK(void , onStateChange , () )

DECLARE_CONOBJECT(StateMachineComponent )

loadStateMachineFile()

onAdd()

Reimplemented from: Component

onComponentAdd()

Reimplemented from: Component

onComponentRemove()

Reimplemented from: Component

onDynamicModified(const char * slotName, const char * newValue)

Reimplemented from: Component

onRemove()

Reimplemented from: Component

onStateChanged(StateMachine * sm, S32 stateIdx)

onStaticModified(const char * slotName, const char * newValue)

Reimplemented from: Component

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: Component

processTick()

Reimplemented from: Component

setStateMachineFile(const char * fileName)

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: Component

Public Static Functions

_setSMFile(void * object, const char * index, const char * data)

initPersistFields()