Adds a new component to this entity.
The component to add.
Removes a component from this entity.
The component to remove.
Gets a reference to the component by its type.
The type of the component data.
The type of the component object.
The type of the component to retrieve.
The component of the specified type or undefined if not found.
Gets the unique identifier for this entity.
The ID of this entity.
Checks if the entity contains a component of the given type.
The type of the component to check for.
True if the entity has the component, otherwise false.
Represents an Entity in an ECS (Entity-Component-System) architecture.