Skip to main content

Action Class

Description:

  A class for creating an action that can be run on a Node.

__call

Type: Metamethod.

Description:

  Creates a new Action from the given definition.

Signature:

metamethod __call: function(self: ActionClass, actionDef: ActionDef): Action

Parameters:

ParameterTypeDescription
actionDefActionDefThe definition of the Action.

Returns:

Return TypeDescription
ActionThe new Action object.