Core.findReferences: Difference between revisions
From GiderosMobile
wip |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros | '''Available since:''' Gideros 2023.2<br/> | ||
'''Class:''' [[Core]]<br/> | '''Class:''' [[Core]]<br/> | ||
=== Description === | === Description === | ||
A list of all Core Class references. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Core.findReferences() | refs = Core.findReferences() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''' | '''This function is mainly used for Gideros internal references purposes''' | ||
=== | ''refs'' is a table with the following Core Class references: | ||
''' | *profilerReport | ||
*getScriptPath | |||
*randomSeed | |||
*random | |||
*findReferences | |||
*class | |||
*profilerStop | |||
*profilerReset | |||
*enableAllocationTracking | |||
*profilerStart | |||
*yield | |||
*yieldable | |||
*asyncThread | |||
*frameStatistics | |||
*asyncCall | |||
*signal | |||
=== Return values === | |||
'''refs ''': (table) a list of all Core Class references<br/> | |||
=== Example === | |||
<syntaxhighlight lang="lua"> | |||
print() | |||
for k, v in pairs(Core.findReferences()) do | |||
for k1, v1 in pairs(k) do | |||
print(k1, v1) | |||
end | |||
end | |||
</syntaxhighlight> | |||
{{Core}} | {{Core}} | ||
Latest revision as of 20:03, 4 February 2025
Available since: Gideros 2023.2
Class: Core
Description
A list of all Core Class references.
refs = Core.findReferences()
This function is mainly used for Gideros internal references purposes
refs is a table with the following Core Class references:
- profilerReport
- getScriptPath
- randomSeed
- random
- findReferences
- class
- profilerStop
- profilerReset
- enableAllocationTracking
- profilerStart
- yield
- yieldable
- asyncThread
- frameStatistics
- asyncCall
- signal
Return values
refs : (table) a list of all Core Class references
Example
print()
for k, v in pairs(Core.findReferences()) do
for k1, v1 in pairs(k) do
print(k1, v1)
end
end
- 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