Difference between revisions of "Core.class"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 5: | Line 5: | ||
Creates and returns new Gideros class. | Creates and returns new Gideros class. | ||
− | < | + | <syntaxhighlight lang="lua"> |
Core.class(base,constructor,destructor) | Core.class(base,constructor,destructor) | ||
</source> | </source> |
Revision as of 14:26, 13 July 2023
Available since: Gideros 2012.2
Class: Core
Description
Creates and returns new Gideros class.
<syntaxhighlight lang="lua"> Core.class(base,constructor,destructor) </source>
Parameters
base: (GiderosClass) Gideros class from which to inherit optional
constructor: (function) Function that should return the arguments to be supplied to the base class during construction optional, since 2020.1
destructor: (function) Function called when the object is garbarge collected optional, since 2020.7