Class EntityManager.EntityTagCollection
This class represents a collection of entities of this EntityManager that have the specified tag.
Inherited Members
Namespace: Evergine.Framework.Managers
Assembly: Evergine.Framework.dll
Syntax
public class EntityManager.EntityTagCollection : DisposableObject
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 for filtering. |
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()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
Events
OnEntityAdded
Event fires when an entity is added to this collection.
Declaration
public event EventHandler<Entity> OnEntityAdded
Event Type
Type | Description |
---|---|
EventHandler<Entity> |
OnEntityRemoved
Event that is fired when an entity has been removed from this collection.
Declaration
public event EventHandler<Entity> OnEntityRemoved
Event Type
Type | Description |
---|---|
EventHandler<Entity> |