Wrapper object for a Lua function (annonimous or not) sent from a script for use as callback.

Constructor

new(lua:State, ref:Int)

Variables

read onlyref:Int

Pointer to Lua function reserved for temporary use

Methods

@:value({ args : null })call(?args:Array<Dynamic>):Void

Runs this Lua function once, with the given arguments.

dispose():Void

Deallocates the pointer reserved for this callback. Make sure to call this once you're done using the function.