Murl Engine Lua Addon API  Version 1.0 beta
Murl.Logic.IState

The IState interface.

The IState object contains all necessary engine interfaces for logic processor programming.
Logic methods typically gets an instance of the IState object by parameter.


Table members

Methods


GetFactory()

Get the logic object factory.

Murl.Logic.IFactory GetFactory()

Returns
Murl.Logic.IFactory The logic object factory.

GetCurrentTickTime()

Get the current tick time. The current tick time is the absolute time from starting the engine.

Number GetCurrentTickTime()

Returns
Number The current tick time in seconds.

GetCurrentTickDuration()

Get the current tick duration.

Number GetCurrentTickDuration()

Returns
Number The current tick duration in seconds.

GetPlatformConfiguration()

Get the platform configuration object.

Murl.IPlatformConfiguration GetPlatformConfiguration()

Returns
Murl.IPlatformConfiguration The configuration object.

GetEngineConfiguration()

Get the engine configuration object.

Murl.IEngineConfiguration GetEngineConfiguration()

Returns
Murl.IEngineConfiguration The configuration object.

GetAppConfiguration()

Get the app configuration object.

Murl.IAppConfiguration GetAppConfiguration()

Returns
Murl.IAppConfiguration The configuration object.

GetDeviceHandler()

Get the device handler object.

Murl.Logic.IDeviceHandler GetDeviceHandler()

Returns
Murl.Logic.IDeviceHandler The device handler object.

GetFileInterface()

Get the file interface object.

Murl.IFileInterface GetFileInterface()

Returns
Murl.IFileInterface The file interface object.

GetGraphRoot()

Get the graph root object.

Murl.Graph.IRoot GetGraphRoot()

Returns
Murl.Graph.IRoot The graph root object.

GetLoader()

Get the package loader object.

Murl.ILoader GetLoader()

Returns
Murl.ILoader The package loader object.

GetResourceCollection()

Get the resource collection object.

Murl.Resource.ICollection GetResourceCollection()

Returns
Murl.Resource.ICollection The resource collection object.

GetResourceText(resourceId)

Get the string value from a text resource.

String GetResourceText(String resourceId)

Parameters
resourceIdThe text resource identifier.
Returns
String The string value of the text resource or an empty string if the resource is not available.

GetNetFactory()

Get the net object factory.

Murl.Net.IFactory GetNetFactory()

Returns
Murl.Net.IFactory The net object factory.

GetStatistics()

Get the core statistics interface.

Murl.Core.IStatistics GetStatistics()

Returns
Murl.Core.IStatistics The core statistics interface.

SetUserDebugMessage(message)

Set the user debug message on render screen. The debug message is displayed if the built-in "debug" resource package is loaded. See also IAppConfiguration::SetUserDebugInfoEnabled() and IAppConfiguration::SetUserDebugInfoScaleFactor().

SetUserDebugMessage(String message)

Parameters
messageThe message string.

AddUserDebugMessage(message)

Append a user debug message on render screen. The debug message is displayed if the built-in "debug" resource package is loaded.

AddUserDebugMessage(String message)

Parameters
messageThe message string to append.

GetUserDebugMessage()

Get the user debug message string.

String GetUserDebugMessage()

Returns
String The user debug message string.

GetCurrentProcessor()

Get the current logic processor. The current logic processor is not available on IAppGraph calls.

Murl.SharedPointer.LogicIProcessor GetCurrentProcessor()

Returns
Murl.SharedPointer.LogicIProcessor The current logic processor.

GetCurrentGraphNode()

Get the current graph node object. The current graph node is available on IAppGraph calls only.

Murl.Graph.INode GetCurrentGraphNode()

Returns
Murl.Graph.INode The current graph node object or null.

SetCurrentProcessor(processor)

Set the current logic processor. The current processor is typically set by the engine.

SetCurrentProcessor(Murl.SharedPointer.LogicIProcessor processor)

Parameters
processorThe current logic processor to set.