-
Notifications
You must be signed in to change notification settings - Fork 0
Glass
github-actions[bot] edited this page Nov 23, 2024
·
6 revisions
Register a class with the Glu framework.
The following options are available:
-
class_name
string
- The name of the class, usually in the form ofNameClass
. -
name
string
- The name of the class, usually in the form ofname
. -
inherit_from
string?
- The class to inherit from, in the form of the class'sname
. -
dependencies
string[]
- The dependencies of the class, in the form of the class'sname
. -
inherit
table<string, function>
- The functions to inherit, in the form offunction_name = function(self, ...) end
. -
setup
function
- The setup function, in the form offunction(self, ...) end
. -
valid
function
- The valid function, in the form offunction(self, ...) end
.
Parameters
-
class_opts
(table
) - The class options.
Returns
Glass
- The class.
Documentation generated with Gludoc.