You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anthony Diamond edited this page Apr 3, 2023
·
12 revisions
Components
Summary
A component is a data structure used to attach a particular property, behavior, or other attribute to an entity. Components commonly have the Component suffix.
Under default configuration of the engine, many contexts allow for omission of the Component suffix by using lower_snake_case syntax. e.g. uses of NameComponent can be replaced with name, CollisionComponent with collision, etc.
Components can range from simplistic POD-like data structures to fully featured classes, but are commonly kept as simple as possible for ease-of-use in composition.