Tags.md

June 7, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

Tags Struct

Tags define a set of ITag's used to query entities in an EntityStoreBase.

public struct Tags :
System.Collections.Generic.IEnumerable<Friflo.Engine.ECS.TagType>,
System.Collections.IEnumerable,
System.IEquatable<Friflo.Engine.ECS.Tags>

Implements System.Collections.Generic.IEnumerable<TagType>, System.Collections.IEnumerable, System.IEquatable<Tags>

Constructors
Tags(TagType)
Tags(BitSet)
Properties
CountReturn the number of contained ITag's.
Methods
Add(Tags)Add the passed tags.
Add<T>()Add the passed ITag type T.
Equals(Tags)
Equals(object)
Get<T>()Create an instance containing the given ITag type T.
Get<T1,T2,T3,T4,T5>()Create an instance containing the given ITag types T1, T2, T3, T4 and T5.
Get<T1,T2,T3,T4>()Create an instance containing the given ITag types T1, T2, T3 and T4.
Get<T1,T2,T3>()Create an instance containing the given ITag types T1, T2 and T3.
Get<T1,T2>()Create an instance containing the given ITag types T1 and T2.
GetEnumerator()
GetHashCode()
Has<T1,T2,T3>()Return true if it contains all passed IComponent types T1, T2 and T3.
Has<T1,T2>()Return true if it contains all passed IComponent types T1 and T2.
Has<T1>()Return true if it contain the passed tag IComponent type T1.
HasAll(Tags)Return true if it contains all passed tags.
HasAny(Tags)Return true if it contains any of the passed tags.
Remove(Tags)Removes the passed tags.
Remove<T>()Removes the passed ITag type T.
ToString()
Operators
operator ==(Tags, Tags)
operator !=(Tags, Tags)
Explicit Interface Implementations
System.Collections.Generic.IEnumerable<Friflo.Engine.ECS.TagType>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()