Difference between revisions of "Core.class"

From GiderosMobile
Line 6: Line 6:
  
 
<source lang="lua">
 
<source lang="lua">
Core.class(base)
+
Core.class(base,constructor,destructor)
 
</source>
 
</source>
  
 
=== Parameters ===
 
=== Parameters ===
 
'''base''': (GiderosClass) Gideros class from which to inherit '''optional'''<br/>
 
'''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}}
 
{{Core}}

Revision as of 14:50, 3 July 2020

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