Entitas::Entity
Inherits Entitas::IEntity / Entitas::Helper::ComponentPools / Reference / Object
Constructors
Instance methods
Will add the Entitas::Component at the provided index.
You can only have one component at an index.
Each component type must have its own constant index.
Automatic Entity Reference Counting (AERC) is used internally to prevent pooling retained entities. If you use retain manually you also have to release it manually at some point.
The context_info is set by the context which created the entity and
contains information about the context.
It's used to provide better error messages.
Will return the Entitas::Component at the provided index.
You can only get a component at an index if it exists.
Determines whether this entity has a component at any of the specified indices.
Determines whether this entity has a component at the specified index.
Determines whether this entity has components at all the specified indices.
Re-enable the entity and set its creation index
Releases the entity. An owner can only release an entity if it retains it. Retain/Release is part of AERC (Automatic Entity Reference Counting) and is used internally to prevent pooling retained entities. If you use retain manually you also have to release it manually at some point.
Removes a component at the specified index. You can only remove a component at an index if it exists.
Replaces an existing component at the specified index or adds it if it doesn't exist yet.
Retains the entity. An owner can only retain the same entity once. Retain/Release is part of AERC (Automatic Entity Reference Counting) and is used internally to prevent pooling retained entities. If you use retain manually you also have to release it manually at some point.