Entitas::Group(TEntity)
Inherits Enumerable / Entitas::Helper::Entities / Entitas::IGroup / Entitas::Helper::Entities / Reference / Object
Constructors
new(matcher : Entitas::Matcher)
SourceInstance methods
add_entity_silently(entity : TEntity) : TEntity | Bool
Sourceget_entities(buff : Enumerable(IEntity))
Sourceget_single_entity
Returns the only entity in this group. It will return null if the group is empty. It will throw an exception if the group has more than one entity.
This is used by the context to manage the group.
remove_all_event_handlers
Removes all event handlers from this group. Keep in mind that this will break reactive systems and entity indices which rely on this group.
Removes: OnEntityRemoved, OnEntityAdded, and OnEntityUpdated
remove_entity_silently(entity : Entity) : Entity | Nil
Sourceto_json(json)
Sourceto_s(io)
Sourceupdate_entity(entity : IEntity, index : Int32, prev_component : Entitas::IComponent | Nil, new_component : Entitas::IComponent | Nil)
This is used by the context to manage the group.