EntityManager.getAllWith

Get every entity in the scope which contains a component

Returns an array of type Entity with every entity which contains the component passed

  1. Entity[] getAllWith()
    class EntityManager
    @safe pure
    getAllWith
    ()
    ()
  2. Entity[] getAllWith()

Examples

Entity[] arr = world.entity.getAllWith!Foo;

Meta