Class EntityManager.EntityTagCollection
This class represent a collection of entitities of this EntityManager that has the specified tag.
Implements
Inherited Members
Namespace: Evergine.Framework.Managers
Assembly: Evergine.Framework.dll
Syntax
public class EntityManager.EntityTagCollection : DisposableObject, IDisposable
  Constructors
EntityTagCollection(string)
Initializes a new instance of the EntityManager.EntityTagCollection class.
Declaration
public EntityTagCollection(string tag)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | tag | The tag used to filter.  | 
      
Fields
Tag
The filtered Tag.
Declaration
public readonly string Tag
  Field Value
| Type | Description | 
|---|---|
| string | 
Properties
Entities
Gets all entities filtered by Tag.
Declaration
public IEnumerable<Entity> Entities { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<Entity> | 
Methods
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
  Overrides
Events
OnEntityAdded
Event fired when an entity has been added to this collection.
Declaration
public event EventHandler<Entity> OnEntityAdded
  Event Type
| Type | Description | 
|---|---|
| EventHandler<Entity> | 
OnEntityRemoved
Event fired when an entity has been removed from this collection.
Declaration
public event EventHandler<Entity> OnEntityRemoved
  Event Type
| Type | Description | 
|---|---|
| EventHandler<Entity> |