-
Notifications
You must be signed in to change notification settings - Fork 0
Components
Anthony Diamond edited this page Apr 3, 2023
·
12 revisions
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.