Aspect.empty constructor

Aspect.empty()

Creates and returns an empty aspect. This can be used if you want a system that processes no entities, but still gets invoked. Typical usages is when you need to create special purpose systems for debug rendering, like rendering FPS, how many entities are active in the world, etc.

You can also use the all, one and exclude methods on this aspect, so if you wanted to create a system that processes only entities possessing just one of the components A or B or C, then you can do: Aspect.empty()..one("A", "B", "C");

Returns an empty Aspect that will reject all entities.

Implementation

Aspect.empty();