Difference between revisions of "Core"
Line 31: | Line 31: | ||
[[Core.random]] ''generates a random number''<br/><!--GIDEROSMTD:Core.random(generator,bound1,bound2) generates a random number--> | [[Core.random]] ''generates a random number''<br/><!--GIDEROSMTD:Core.random(generator,bound1,bound2) generates a random number--> | ||
[[Core.randomSeed]] ''sets the random generator seed''<br/><!--GIDEROSMTD:Core.randomSeed(generator,seed) sets the random generator seed--> | [[Core.randomSeed]] ''sets the random generator seed''<br/><!--GIDEROSMTD:Core.randomSeed(generator,seed) sets the random generator seed--> | ||
− | [[Core.setAutoYield]] ''auto | + | [[Core.setAutoYield]] ''changes auto yield capability of async tasks''<br/><!--GIDEROSMTD:Core.setAutoYield(auto) changes auto yield capability of async tasks--> |
[[Core.signal]] ''creates a signal for use by parallel threads''<br/><!--GIDEROSMTD:Core.signal() creates a signal for use by parallel threads--> | [[Core.signal]] ''creates a signal for use by parallel threads''<br/><!--GIDEROSMTD:Core.signal() creates a signal for use by parallel threads--> | ||
[[Core.yield]] ''yields function running as background task''<br/><!--GIDEROSMTD:Core.yield(state,nowait) yields function running as background task--> | [[Core.yield]] ''yields function running as background task''<br/><!--GIDEROSMTD:Core.yield(state,nowait) yields function running as background task--> |
Revision as of 20:01, 4 February 2025
Supported platforms:
Available since: Gideros 2012.2
Inherits from: Object
Description
Gideros Core functions.
Example
MySprite = Core.class(Sprite)
--my custom sprite class
function MySprite:init()
end
MethodsCore.asyncCall launches function on separate thread as background task |
EventsConstants |