Difference between revisions of "Core"
From GiderosMobile
m |
|||
Line 7: | Line 7: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | <translate>Gideros Core functions</translate> | + | <translate>Gideros Core functions.</translate> |
=== <translate>Examples</translate> === | === <translate>Examples</translate> === | ||
Line 20: | Line 20: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/Core.asyncCall|Core.asyncCall]] ''<translate>Launch function on separate thread as background task</translate>''<br/><!-- GIDEROSMTD:Core.asyncCall(task,parameters) Launch function on separate thread as background task --> | + | [[Special:MyLanguage/Core.asyncCall|Core.asyncCall]] ''<translate>Launch function on separate thread as background task</translate>''<br/> |
− | [[Special:MyLanguage/Core.class|Core.class]] ''<translate>Creates and returns new Gideros class</translate>''<br/><!-- GIDEROSMTD:Core.class(base) Creates and returns new Gideros class --> | + | <!-- GIDEROSMTD:Core.asyncCall(task,parameters) Launch function on separate thread as background task --> |
− | [[Special:MyLanguage/Core.frameStatistics|Core.frameStatistics]] ''<translate>Return table with data about frame</translate>''<br/><!-- GIDEROSMTD:Core.frameStatistics() Return table with data about frame --> | + | [[Special:MyLanguage/Core.class|Core.class]] ''<translate>Creates and returns new Gideros class</translate>''<br/> |
− | [[Special:MyLanguage/Core.profilerReport|Core.profilerReport]] ''<translate>Output profiling results</translate>''<br/><!-- GIDEROSMTD:Core.profilerReport() Output profiling results --> | + | <!-- GIDEROSMTD:Core.class(base) Creates and returns new Gideros class --> |
− | [[Special:MyLanguage/Core.profilerReset|Core.profilerReset]] ''<translate>Clear recorded profiling data</translate>''<br/><!-- GIDEROSMTD:Core.profilerReset() Clear recorded profiling data --> | + | [[Special:MyLanguage/Core.frameStatistics|Core.frameStatistics]] ''<translate>Return table with data about frame</translate>''<br/> |
− | [[Special:MyLanguage/Core.profilerStart|Core.profilerStart]] ''<translate>Start profiling lua code</translate>''<br/><!-- GIDEROSMTD:Core.profilerStart() Start profiling lua code --> | + | <!-- GIDEROSMTD:Core.frameStatistics() Return table with data about frame --> |
− | [[Special:MyLanguage/Core.profilerStop|Core.profilerStop]] ''<translate>Stop profiling</translate>''<br/><!-- GIDEROSMTD:Core.profilerStop() Stop profiling --> | + | [[Special:MyLanguage/Core.profilerReport|Core.profilerReport]] ''<translate>Output profiling results</translate>''<br/> |
− | [[Special:MyLanguage/Core.random|Core.random]] ''<translate>Generate a random number</translate>''<br/><!-- GIDEROSMTD:Core.random(generator,bound1,bound2) Generate a random number --> | + | <!-- GIDEROSMTD:Core.profilerReport() Output profiling results --> |
− | [[Special:MyLanguage/Core.randomSeed|Core.randomSeed]] ''<translate>Set the random generator seed</translate>''<br/><!-- GIDEROSMTD:Core.randomSeed(generator,seed) Set the random generator seed --> | + | [[Special:MyLanguage/Core.profilerReset|Core.profilerReset]] ''<translate>Clear recorded profiling data</translate>''<br/> |
− | [[Special:MyLanguage/Core.yield|Core.yield]] ''<translate>Yield function running as background task</translate>''<br/><!-- GIDEROSMTD:Core.yield(state) Yield function running as background task --> | + | <!-- GIDEROSMTD:Core.profilerReset() Clear recorded profiling data --> |
+ | [[Special:MyLanguage/Core.profilerStart|Core.profilerStart]] ''<translate>Start profiling lua code</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Core.profilerStart() Start profiling lua code --> | ||
+ | [[Special:MyLanguage/Core.profilerStop|Core.profilerStop]] ''<translate>Stop profiling</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Core.profilerStop() Stop profiling --> | ||
+ | [[Special:MyLanguage/Core.random|Core.random]] ''<translate>Generate a random number</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Core.random(generator,bound1,bound2) Generate a random number --> | ||
+ | [[Special:MyLanguage/Core.randomSeed|Core.randomSeed]] ''<translate>Set the random generator seed</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Core.randomSeed(generator,seed) Set the random generator seed --> | ||
+ | [[Special:MyLanguage/Core.yield|Core.yield]] ''<translate>Yield function running as background task</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Core.yield(state) Yield function running as background task --> | ||
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} |
Revision as of 08:23, 4 January 2020
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 |