ECS
Also called: entity component system
Related terms: object components
A way to organize game code around data. An entity is just an ID. A component is plain data attached to it, like position or health. A system is a function that runs over every entity that has a given set of components.
Behavior comes from which components an entity has, not from a class hierarchy. Storing each component type in a tight array is also fast for the CPU cache.
- Further reading
- Unity: Entity component system concepts