Abstractinitialises a new instance of a GameObject.
A descriptive name for the object.
The rendering order (higher numbers are drawn on top).
OptionalsourceId: stringHidden identifier linking runtime object to its source code location.
ReadonlyidUnique identifier for the game object.
Static_Static helper for tests to bypass Registry circularity if mocked.
The bounds component for this object, defining its physical area.
The tag component for this object, managing its name and rendering order.
The transform component for this object, managing position and scale.
Adds a component to this game object.
The component instance to add.
Removes this object from the active scene or global engine loop.
Emits a custom event on this object's event bus.
The event type.
Optionaldetail: unknownOptional data to pass with the event.
Retrieves a component from this object by its class.
The class of the component to retrieve.
The component instance, or undefined if not found.
Checks if this object has a component of the specified class.
The class to check for.
True if the component exists.
Stops listening for an event on this object's event bus.
The event type.
The function to remove.
Listens for an event on this object's event bus.
The event type.
The function to run when the event occurs.
Registers this object with the active scene or global engine loop.
Removes a component from this game object by its class.
The class of the component to remove.
Base class for all entities in the game world.