Skip to content
github-actions[bot] edited this page Nov 23, 2024 · 6 revisions

Glass

Glass.register

Register a class with the Glu framework.

The following options are available:

  • class_name string - The name of the class, usually in the form of NameClass.
  • name string - The name of the class, usually in the form of name.
  • inherit_from string? - The class to inherit from, in the form of the class's name.
  • dependencies string[] - The dependencies of the class, in the form of the class's name .
  • inherit table<string, function> - The functions to inherit, in the form of function_name = function(self, ...) end.
  • setup function - The setup function, in the form of function(self, ...) end.
  • valid function - The valid function, in the form of function(self, ...) end.

Parameters

  • class_opts (table) - The class options.

Returns

Glass - The class.

Clone this wiki locally