Jump to content

Component Registry

From Advanced Computers Wiki
Revision as of 23:42, 1 August 2026 by GHXX (talk | contribs) (Created page with "The Component Registry allows accessing all currently available Components and is the most convenient way of accessing components. {| class="wikitable" |+ ComponentRegistryUD methods |- ! Name !! Type !! Description |- | style="white-space: nowrap;" | <code>:list()</code> || <code>function -> (string, userdata)</code> || Returns an iterator function that, in each invocation returns a string representing the type of the current component along with the actu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Component Registry allows accessing all currently available Components and is the most convenient way of accessing components.

ComponentRegistryUD methods
Name Type Description
:list() function -> (string, userdata) Returns an iterator function that, in each invocation returns a string representing the type of the current component along with the actual userdata instance.
:getFirst(componentType:string) userdata Returns the first component of the given componentType or nil if no matching component exists.