classΒΆ

nil class ( string name , strings ... )

Create a new class that inherit from a list of parent classes

This function creates a new class that inherit from an optionnal list of parent classes. The constrctor method must be called 'construct'. You can create an object of this type by calling the class with adequate parameters. Example:

class ("MyNode""Node")
function MyNode:construct (parent, name, aValue)
    Plug (self, "APlug", Plug.NoSerial, types.float{})
    self.APlug:Set (aValue)
end
myNode = MyNode (Document, nil, 12)
Arguments:

  • name The class name
  • ... The list of parent classes to inherit