What is the Entity Component System?

Eugene Krevenets edited this page Oct 27, 2013 · 5 revisions


Entity-component-system (ECS) is a software architecture pattern that separates the functionality into individual components that are mostly independent of one another. Composition is used instead of inheritance. The entity is a general purpose object. Usually, it only consists of a unique id and a container. The component consists of a minimal set of data needed for a specific purpose. Systems are single purpose functions that take a set of entities which have a specific component (or set of components) and update them. from Wikipedia