Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIScriptNode Class Reference
Inheritance diagram for MOAIScriptNode:
MOAINode MOAIInstanceEventSource MOAIEventSource

List of all members.

Function List

  reserveAttrs
  setCallback

Function Documentation

Reserve memory for custom attributes and initializes them to 0.


function reserveAttrs ( MOAIScriptNode self, number nAttributes )
Parameters:
self ( MOAIScriptNode )
nAttributes ( number )
Returns:
nil

Sets a Lua function to be called whenever the node is updated.


function setCallback ( MOAIScriptNode self, function onUpdate )
Parameters:
self ( MOAIScriptNode )
onUpdate ( function )
Returns:
nil