Core.findReferences: Difference between revisions

From GiderosMobile
wip
 
No edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 20XX.X<br/>
'''Available since:''' Gideros 2023.2<br/>
'''Class:''' [[Core]]<br/>
'''Class:''' [[Core]]<br/>


=== Description ===
=== Description ===
Finds references.*
A list of all Core Class references.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Core.findReferences()
refs = Core.findReferences()
</syntaxhighlight>
</syntaxhighlight>


  '''* not much info yet'''
  '''This function is mainly used for Gideros internal references purposes'''


=== Parameters ===
''refs'' is a table with the following Core Class references:
'''xxx''': (xxx) xxx<br/>
*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