EntityManager.getFirstWith

Get the first entity in the scope with a component

Returns the first entity with the component passed If there's none, it returns null

  1. Entity getFirstWith()
    class EntityManager
    @safe pure
    getFirstWith
    ()
    ()
  2. Entity getFirstWith()

Examples

Entity e = world.entity.getFirstWith!Foo;

Meta