ScriptTickObject
Engine/source/console/scriptObjects.h
Private Types
Parent
Protected Attributes
bool
Public Functions
advanceTime(F32 timeDelta)
This method is called once every frame regardless of the return value of isProcessingTicks and informs the object of the passage of time.
DECLARE_CALLBACK(void , onAdvanceTime , (F32 timeDelta) )
DECLARE_CALLBACK(void , onInterpolateTick , (F32 delta) )
DECLARE_CALLBACK(void , onProcessTick , () )
interpolateTick(F32 delta)
This method is called every frame and lets the control interpolate between ticks so you can smooth things as long as isProcessingTicks returns true when it is called on the object.
bool
onAdd()
Called when the object is added to the sim.
This method is called once every 32ms if isProcessingTicks returns true when called on the object.
Public Static Functions
Detailed Description
Private Types
typedef ScriptObject Parent
Protected Attributes
bool mCallOnAdvanceTime
Public Functions
ScriptTickObject()
advanceTime(F32 timeDelta)
Reimplemented from: ITickable
DECLARE_CALLBACK(void , onAdvanceTime , (F32 timeDelta) )
DECLARE_CALLBACK(void , onInterpolateTick , (F32 delta) )
DECLARE_CALLBACK(void , onProcessTick , () )
DECLARE_CONOBJECT(ScriptTickObject )
interpolateTick(F32 delta)
Reimplemented from: ITickable
onAdd()
Reimplemented from: ScriptObject
onRemove()
Reimplemented from: ScriptObject
processTick()
Reimplemented from: ITickable