Quantum 3
3.0.9
A bitset representing a set of components. The set can contain up to 512 components. This type is not serializable, as any defining or removing a component type would affect other component indices. More...
Public Member Functions | |
| void | Add (int index) |
| Adds the element at the specified index to the set. More... | |
| void | Add< T > () |
| Adds the type's id to the set. More... | |
| readonly bool | Equals (in ComponentSet other) |
| Returns true if both sets are equal. More... | |
| readonly override int | GetHashCode () |
| void | IntersectWith (in ComponentSet other) |
| Returns the set of elements that are both in the set and in the other set. More... | |
| readonly bool | IsSet (int index) |
| Returns true if the set contains the element at the specified index. More... | |
| bool | IsSet< T > () |
| Returns true if the type's id is in the set. More... | |
| readonly bool | IsSubsetOf (in ComponentSet other) |
| Returns true if the set is a subset of the other set. More... | |
| readonly bool | IsSupersetOf (in ComponentSet other) |
| Returns true if the set is a superset of the other set. More... | |
| readonly bool | Overlaps (in ComponentSet other) |
| Returns true if the set and other have at least one element in common. More... | |
| void | Remove (in ComponentSet other) |
| Removes all elements from the set that are in the other set. More... | |
| void | Remove (int index) |
| Removes the element at the specified index from the set. More... | |
| void | Remove< T > () |
| Removes the type's id from the set. More... | |
| void | UnionWith (in ComponentSet other) |
| Returns the set of elements that are in the set or in the other set. More... | |
Static Public Member Functions | |
| static ComponentSet | Create (ComponentTypeRef componentTypeRef) |
| static ComponentSet | Create (ReadOnlySpan< ComponentTypeRef > componentTypeRefs) |
| static ComponentSet | Create< T0 > () |
| Creates a new component set with the specified components. More... | |
| static ComponentSet | Create< T0, T1 > () |
| static ComponentSet | Create< T0, T1, T2 > () |
| static ComponentSet | Create< T0, T1, T2, T3 > () |
| static ComponentSet | Create< T0, T1, T2, T3, T4 > () |
| static ComponentSet | Create< T0, T1, T2, T3, T4, T5 > () |
| static ComponentSet | Create< T0, T1, T2, T3, T4, T5, T6 > () |
| static ComponentSet | Create< T0, T1, T2, T3, T4, T5, T6, T7 > () |
Static Public Attributes | |
| const int | MAX_COMPONENTS = 512 |
| Maximum number of components that can be stored in the set. More... | |
Properties | |
| readonly bool | IsEmpty [get] |
| Returns true if the set is empty. More... | |
A bitset representing a set of components. The set can contain up to 512 components. This type is not serializable, as any defining or removing a component type would affect other component indices.
|
inlinestatic |
Creates a new component set with the specified components.
| T0 | : | unmanaged | |
| T0 | : | IComponent |
|
inline |
Returns true if both sets are equal.
|
inline |
Returns true if the set is a subset of the other set.
|
inline |
Returns true if the set and other have at least one element in common.
|
inline |
Returns true if the set is a superset of the other set.
|
inline |
Removes all elements from the set that are in the other set.
|
inline |
Returns the set of elements that are in the set or in the other set.
|
inline |
Returns the set of elements that are both in the set and in the other set.
|
inline |
Returns true if the set contains the element at the specified index.
|
inline |
Adds the element at the specified index to the set.
|
inline |
Removes the element at the specified index from the set.
|
inline |
Adds the type's id to the set.
| T | : | unmanaged | |
| T | : | IComponent |
|
inline |
Removes the type's id from the set.
| T | : | unmanaged | |
| T | : | IComponent |
|
inline |
Returns true if the type's id is in the set.
| T | : | unmanaged | |
| T | : | IComponent |
|
static |
Maximum number of components that can be stored in the set.
|
get |
Returns true if the set is empty.