Difference between revisions of "Core"
From GiderosMobile
|  (----) | |||
| Line 1: | Line 1: | ||
| __NOTOC__ | __NOTOC__ | ||
| − | + | ||
| − | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | |
| − | ''' | + | '''Available since:''' Gideros 2012.2<br/> | 
| − | ''' | + | '''Inherits from:''' [[Object]]<br/> | 
| − | ''' | + | |
| − | ===  | + | === Description === | 
| − | + | Gideros Core functions | |
| − | ===  | + | |
| − | + | === Examples === | |
| − | <source lang="lua">MySprite = Core.class(Sprite) | + | <source lang="lua"> | 
| + | MySprite = Core.class(Sprite) | ||
| --my custom sprite class | --my custom sprite class | ||
| function MySprite:init() | function MySprite:init() | ||
| − | end</source> | + | end | 
| + | </source> | ||
| + | |||
| {|- | {|- | ||
| + | |||
| | style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| − | ===  | + | |
| − | [[ | + | === Methods === | 
| − | [[ | + | [[Core.asyncCall]] ''Launch function on separate thread as background task''<br/> | 
| − | [[ | + | [[Core.class]] ''Creates and returns new Gideros class''<br/> | 
| − | [[ | + | [[Core.frameStatistics]] ''Return table with data about frame''<br/> | 
| − | [[ | + | [[Core.profilerReport]] ''Output profiling results''<br/> | 
| − | [[ | + | [[Core.profilerReset]] ''Clear recorded profiling data''<br/> | 
| − | [[ | + | [[Core.profilerStart]] ''Start profiling lua code''<br/> | 
| − | [[ | + | [[Core.profilerStop]] ''Stop profiling''<br/> | 
| − | [[ | + | [[Core.random]] ''Generate a random number''<br/> | 
| − | [[ | + | [[Core.randomSeed]] ''Set the random generator seed''<br/> | 
| + | [[Core.yield]] ''Yield function running as background task''<br/> | ||
| + | |||
| | style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| − | ===  | + | |
| − | ===  | + | === Events === | 
| + | |||
| + | === Constants === | ||
| + | |||
| |} | |} | ||
| + | |||
| + | ---- | ||
| + | {{Special:PrefixIndex/Core}} | ||
| + | <br/> | ||
Revision as of 16:47, 2 December 2019
Supported platforms: 






Available since: Gideros 2012.2
Inherits from: Object
Description
Gideros Core functions
Examples
MySprite = Core.class(Sprite)
--my custom sprite class
function MySprite:init()
end
| MethodsCore.asyncCall Launch function on separate thread as background task | EventsConstants | 
- 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
