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

The IAppTimeline interface.

This interface is used by the ITimeline object to callback the app.


Table members

Functions


Murl.Logic.IAppTimeline.new(callbackTable)

Create a callback object with a given callback table.

Example of a callback table:

local myIAppTimeline =
{
OnEvaluate = function (self, currentTime)
-- user code
end,
}
return Murl.Logic.IAppTimeline.new(myIAppTimeline)

Is is allowed to omit unused callback functions and to add user specific fields to the table.

Murl.Logic.IAppTimeline new(Table callbackTable)

Parameters
callbackTableA table containing the methods to callback.
Returns
Murl.Logic.IAppTimeline The created calback object.


Methods


OnEvaluate(currentTime)

Called if the current time is set. See ITimeline::SetAppTimeline().

OnEvaluate(Number currentTime)

Parameters
currentTimeThe current timeline time.