![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IAppGraph interface.
This interface is used by the Graph::ILogicController object to callback the app.
Create a callback object with a given callback table.
Example of a callback table:
Is is allowed to omit unused callback functions and to add user specific fields to the table.
Murl.Logic.IAppGraph new(Table callbackTable)
callbackTable | A table containing the methods to callback. |
Called by Graph::ILogicController at initialization. Perform initializaton before the node and its children are being initialized.
Boolean OnPreInit(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController at initialization. Perform initializaton after the node and its children have been initialized.
Boolean OnPostInit(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController at deinitialization. Perform de-initializaton step before the node and its children are being de-initialized.
Boolean OnPreDeInit(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController at deinitialization. Perform de-initializaton step after the node and its children have been de-initialized.
Boolean OnPostDeInit(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController each logic tick. Performed by graph logic traversal, before the node is being processed.
OnPreProcessTick(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController each logic tick. Performed by graph logic traversal, after the node's children have been processed.
OnPostProcessTick(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController if the configuration changed. Signal a configuration change, before the node is being processed.
OnPreConfigChanged(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::ILogicController if the configuration changed. Signal a configuration change, after the node's children have been processed.
OnPostConfigChanged(Murl.Logic.IState state)
state | The IState object. |
Called by Graph::IScriptLogicController if the configuration changed. Signal a configuration change, before the node is being processed.
If a new configuration dependent controller script is created the following is called:
If no new configuration dependent controller script is created the OnPreConfigChanged() method of the recent controller is called.
Boolean OnPreInitConfigChanged(Murl.Logic.IState state, Murl.SharedPointer.LogicIAppGraph recentAppGraph)
state | The IState object. |
recentAppGraph | The recent IAppGraph interface object. |
Called by Graph::IScriptLogicController if the configuration changed. Signal a configuration change, after the node's children have been processed.
If a new configuration dependent controller script is created the following is called:
If no new configuration dependent controller script is created the OnPostConfigChanged() method of the recent controller is called.
Boolean OnPostInitConfigChanged(Murl.Logic.IState state, Murl.SharedPointer.LogicIAppGraph recentAppGraph)
state | The IState object. |
recentAppGraph | The recent IAppGraph interface object. |