Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 9.34 KB

ComponentTypes.md

File metadata and controls

47 lines (39 loc) · 9.34 KB

ComponentTypes Struct

ComponentTypes define a set of IComponent's used to list the component System.Type's of an Archetype.

public struct ComponentTypes :
System.Collections.Generic.IEnumerable<Friflo.Engine.ECS.ComponentType>,
System.Collections.IEnumerable

Implements System.Collections.Generic.IEnumerable<ComponentType>, System.Collections.IEnumerable

Constructors
ComponentTypes(ComponentType)
Properties
Count Return the number of contained IComponent's.
Methods
Add(ComponentTypes) Add all passed componentTypes.
Add<T>() Add the passed IComponent type T.
Get<T1,T2,T3,T4,T5>() Create an instance containing the passed IComponent types T1, T2, T3, T4 and T4.
Get<T1,T2,T3,T4>() Create an instance containing the passed IComponent types T1, T2, T3 and T4.
Get<T1,T2,T3>() Create an instance containing the passed IComponent types T1, T2 and T3.
Get<T1,T2>() Create an instance containing the passed IComponent types T1 and T2.
Get<T1>() Create an instance containing the passed IComponent type T1.
GetEnumerator()
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 contains the passed IComponent type T1.
HasAll(ComponentTypes) Return true if it contains all passed componentTypes.
HasAny(ComponentTypes) Return true if it contains any of the passed componentTypes.
Remove(ComponentTypes) Remove all passed componentTypes.
Remove<T>() Add the passed IComponent type T.
ToString()
Explicit Interface Implementations
System.Collections.Generic.IEnumerable<Friflo.Engine.ECS.ComponentType>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()