![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IAppProcessor interface.
This interface is used by the IProcessor 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.IAppProcessor new(Table callbackTable)
callbackTable | A table containing the methods to callback. |
Called by IProcessor at initialization.
Boolean OnInit(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor at deinitialization.
Boolean OnDeInit(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor each logic tick if enabled.
OnProcessTick(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor after processing children's OnProcessTick() each logic tick if enabled.
OnProcessTickChildren(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor each frame tick if enabled.
OnProcessFrame(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor after processing children's OnProcessFrame() each frame tick if enabled.
OnProcessFrameChildren(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor each logic tick if enabled.
OnFinishTick(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor after processing children's OnFinishTick() each logic tick if enabled.
OnFinishTickChildren(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor each frame tick if enabled.
OnFinishFrame(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor after processing children's OnFinishFrame() each frame tick if enabled.
OnFinishFrameChildren(Murl.Logic.IState state)
state | The IState object. |
Called by IProcessor to report the beginning of package loading.
OnPackageWillBeLoaded(Murl.Logic.IState state, Murl.IPackage package)
state | The IState object. |
package | The package to load. |
Called by IProcessor to report the succesful loading of a package.
OnPackageWasLoaded(Murl.Logic.IState state, Murl.IPackage package)
state | The IState object. |
package | The package to load. |
Called by IProcessor to report failed loading a package.
OnPackageFailedLoading(Murl.Logic.IState state, Murl.IPackage package)
state | The IState object. |
package | The package to load. |
Called by IProcessor to report the beginning of package unloading.
OnPackageWillBeUnloaded(Murl.Logic.IState state, Murl.IPackage package)
state | The IState object. |
package | The package to load. |
Called by IProcessor to report the succesful unloading of a package.
OnPackageWasUnloaded(Murl.Logic.IState state, Murl.IPackage package)
state | The IState object. |
package | The package to load. |
Called by IProcessor to report failed unloading a package.
OnPackageFailedUnloading(Murl.Logic.IState state, Murl.IPackage package)
state | The IState object. |
package | The package to load. |
Called by IProcessor to report a change of the application run state.
OnRunStateChanged(Murl.Logic.IState state, Murl.IEnums.AppRunState currentState, Murl.IEnums.AppRunState previousState)
state | The IState object. |
currentState | The current run state. |
previousState | The previous run state. |
Called by IProcessor::SetEnabled(). This method is used to track the enabled state.
OnSetEnabled(Boolean isEnabled)
isEnabled | true if enabled. |