Which architecture does this pattern suggest?
world.addComponent(entity, new Velocity(2, 0));
- Entity-Component-System
- Singleton pattern
- Observer pattern
- Model-View-Controller
Attaching components to entities inside a world is the core idea of ECS.
Play Game Dev ▸