Use context.GetGroup(matcher) to get a group of entities which match the specified matcher. Calling context.GetGroup(matcher) with the same matcher will always return the same instance of the group. The created group is managed by the context and will always be up to date. It will automatically add entities that match the matcher or remove entities as soon as they don't match the matcher anymore.
More...
|
| Group (IMatcher< TEntity > matcher) |
| Use context.GetGroup(matcher) to get a group of entities which match the specified matcher. More...
|
|
override string | ToString () |
|
void | HandleEntitySilently (TEntity entity) |
| This is used by the context to manage the group. More...
|
|
void | HandleEntity (TEntity entity, int index, IComponent component) |
| This is used by the context to manage the group. More...
|
|
void | UpdateEntity (TEntity entity, int index, IComponent previousComponent, IComponent newComponent) |
| This is used by the context to manage the group. More...
|
|
void | RemoveAllEventHandlers () |
| Removes all event handlers from this group. Keep in mind that this will break reactive systems and entity indices which rely on this group. More...
|
|
GroupChanged< TEntity > | HandleEntity (TEntity entity) |
|
bool | ContainsEntity (TEntity entity) |
| Determines whether this group has the specified entity. More...
|
|
TEntity[] | GetEntities () |
| Returns all entities which are currently in this group. More...
|
|
List< TEntity > | GetEntities (List< TEntity > buffer) |
| Fills the buffer with all entities which are currently in this group. More...
|
|
IEnumerable< TEntity > | AsEnumerable () |
|
HashSet< TEntity >.Enumerator | GetEnumerator () |
|
TEntity | GetSingleEntity () |
| 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. More...
|
|
Use context.GetGroup(matcher) to get a group of entities which match the specified matcher. Calling context.GetGroup(matcher) with the same matcher will always return the same instance of the group. The created group is managed by the context and will always be up to date. It will automatically add entities that match the matcher or remove entities as soon as they don't match the matcher anymore.
- Template Parameters
-
Definition at line 39 of file Group.cs.