This type represents an instance of a component in the ECS system. Components are data containers that can be attached to entities to define their properties and state. They are implemented as plain objects with key-value pairs.
class PlayerComponent { health: number; speed: number;} Copy
class PlayerComponent { health: number; speed: number;}
This type represents an instance of a component in the ECS system.
Components are data containers that can be attached to entities
to define their properties and state.
They are implemented as plain objects with key-value pairs.