Entity
An Entity is a container for multiple components and a name
property. This is the basic game object of the ECS architecture and is what
the systems process. The Entity class is the basic object in the
engine and is in most cases adequate on its own.
Example
A basic Entity for a Renderable Rectangle could look something like:
const rectangle = new Entity("rectangle", [Renderable, Transform, Rectangle]);
This entities components could then be changed:
rectangle.components.get(Rectangle).width = 10;
rectangle.components.get(Rectangle).height = 10;