Functions
The following functions are available globally.
-
Returns the first component found in the array of
IComponent
s that matches the specified system. For convenience, the returned component is casted to the specified type.Declaration
Swift
public func getTypedComponent <T: IComponent> (components:[IComponent], system:Systems) -> T?
Parameters
components
The array of components to search.
system
The ID of the system that this component is associated with.
Return Value
The component, casted to the specified type, or
nil
if the component was not found or was the wrong type.
-
Undocumented