InternalGets an array of all component instances of the specified type. This is an internal method that includes undefined slots in the array.
The component class to retrieve instances for
Array of component instances with potential undefined elements, or undefined if type not found
InternalGets an array of all component instances including deleted/dead components. This internal method provides access to the raw component array with undefined slots.
The component class to retrieve instances for
Array of component instances including dead components, or undefined if type not found
Creates a new component instance for the specified entity. This method handles ComponentSID allocation, including reusing SIDs from deleted components.
The ComponentTID of the component type to create
The EntityUID of the entity that will own this component
Reference to the entity repository for entity management
The newly created component instance
Deletes a component instance from the repository. This marks the component's slot as available for reuse and removes it from the active components.
The component instance to delete
Retrieves a specific component instance by ComponentTID and ComponentSID.
The ComponentTID of the component type
The ComponentSID of the specific component instance
The component instance, or undefined if not found
Retrieves all active (non-null) component instances of the specified type. This method filters out deleted components and returns only valid instances.
The component class to retrieve instances for
Array of active component instances (never includes undefined elements)
InternalGets an array of all component instances of the specified type. This is an internal method that includes undefined slots in the array.
Array of component instances with potential undefined elements, or undefined if type not found
Retrieves all registered component type IDs in sorted order. This provides access to all ComponentTIDs that have been registered with the repository.
Array of all ComponentTIDs currently registered, sorted in ascending order
Retrieves all rendering-related component type IDs. This returns ComponentTIDs for components that are involved in the rendering pipeline.
Array of ComponentTIDs for rendering components
StaticderegisterStaticgetRetrieves the component class constructor associated with the specified ComponentTID.
The ComponentTID to look up
The component class constructor, or undefined if not found
StaticregisterRegisters a component class with the repository. This method associates a component class with its unique ComponentTID for later instantiation.
The component class constructor to register
The repository class that manages all component classes and their instances. This class provides functionality to register component classes, create component instances, and manage the lifecycle of components within the ECS (Entity-Component-System) architecture.