ContextAccessorFilter

Namespace: Bang.Contexts
Assembly: Bang.dll

public sealed enum ContextAccessorFilter : Enum, IComparable, ISpanFormattable, IFormattable, IConvertible

Context accessor filter for a system. This will specify the kind of filter which will be performed on a certain list of component types.

Implements: Enum, IComparable, ISpanFormattable, IFormattable, IConvertible

⭐ Properties

AllOf

public static const ContextAccessorFilter AllOf;

Only entities which has all of the listed components will be fed to the system.

Returns
ContextAccessorFilter

AnyOf

public static const ContextAccessorFilter AnyOf;

Filter entities which has any of the listed components will be fed to the system.

Returns
ContextAccessorFilter

None

public static const ContextAccessorFilter None;

No filter is required. This won't be applied when filtering entities to a system. This is used when a system will, for example, add a new component to an entity but does not require such component.

Returns
ContextAccessorFilter

NoneOf

public static const ContextAccessorFilter NoneOf;

Filter out entities that have the components listed.

Returns
ContextAccessorFilter