Difference between revisions of "Core.class"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.2<br/> === Description === Creates and returns new Gideros class <source lang="lua"> = Core.class(base,) </source> '''base:''' (G...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
'''Available since:''' Gideros 2012.2<br/> | '''Available since:''' Gideros 2012.2<br/> | ||
+ | '''Class:''' [[Core]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | Creates and returns new Gideros class | + | Creates and returns new Gideros class. |
− | < | + | |
− | + | <syntaxhighlight lang="lua"> | |
− | </ | + | Core.class(base,constructor,destructor) |
− | '''base | + | </syntaxhighlight> |
+ | |||
+ | === Parameters === | ||
+ | '''base''': (GiderosClass) Gideros class from which to inherit '''optional'''<br/> | ||
+ | '''constructor''': (function) Function that should return the arguments to be supplied to the base class during construction '''optional, since 2020.1'''<br/> | ||
+ | '''destructor''': (function) Function called when the object is garbarge collected '''optional, since 2020.7'''<br/> | ||
+ | |||
+ | {{Core}} |
Latest revision as of 15:26, 13 July 2023
Available since: Gideros 2012.2
Class: Core
Description
Creates and returns new Gideros class.
Core.class(base,constructor,destructor)
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
- Core
- Core.asyncCall
- Core.asyncThread
- Core.class
- Core.enableAllocationTracking
- Core.fileLoad
- Core.fileSave
- Core.findReferences
- Core.frameStatistics
- Core.getScriptPath
- Core.profilerReport
- Core.profilerReset
- Core.profilerStart
- Core.profilerStop
- Core.random
- Core.randomSeed
- Core.setAutoYield
- Core.signal
- Core.stopping
- Core.yield
- Core.yieldable
- Core.yieldlock