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
Entity is a lightweight object that contains traits, gets selected by queries and gets processed by systems. An entity has to be associated with a specific Realm, but can be created and initialized before it is added to one.
An entity can have an optional parent. By itself, it doesn't do much, but systems can use it to infer certain behaviors, such as TransformTraits becoming relative when parent is set.
Trait
Traits are lightweight data objects, which serve as both a piece of data storage and/or a marker for behavior. They are "components" from the "Entity-Component-System".
Bundle
Bundle is an abstract class, that contains a static list of initializable traits. They can be used to add or remove a whole chunk of related traits at once, enabling a whole set of functionality at once. Traits themselves should automatically implement Bundles, so the user can pass a Trait as a single-trait bundle.
EntityComponent
EntityComponents are Flame components, that serve as a bridge between the ECS architecture of backbone and a component-tree architecture of Flame. Each EntityComponent includes an entity and automatically searching for the nearest Realm parent to register itself onMount. There are BaseEntityComponent and PositionEntityComponent are available as alternatives to Component and PositionComponent. Access entity via entity.
The text was updated successfully, but these errors were encountered:
Entity
Entity is a lightweight object that contains traits, gets selected by queries and gets processed by systems. An entity has to be associated with a specific
Realm
, but can be created and initialized before it is added to one.An entity can have an optional
parent
. By itself, it doesn't do much, but systems can use it to infer certain behaviors, such asTransformTraits
becoming relative whenparent
is set.Trait
Traits are lightweight data objects, which serve as both a piece of data storage and/or a marker for behavior. They are "components" from the "Entity-Component-System".
Bundle
Bundle
is an abstract class, that contains a static list of initializable traits. They can be used to add or remove a whole chunk of related traits at once, enabling a whole set of functionality at once. Traits themselves should automatically implementBundle
s, so the user can pass aTrait
as a single-trait bundle.EntityComponent
EntityComponents are
Flame
components, that serve as a bridge between the ECS architecture ofbackbone
and a component-tree architecture ofFlame
. EachEntityComponent
includes an entity and automatically searching for the nearestRealm
parent to register itselfonMount
. There areBaseEntityComponent
andPositionEntityComponent
are available as alternatives toComponent
andPositionComponent
. Access entity viaentity
.The text was updated successfully, but these errors were encountered: