EntityManager.getFirstWith

Get the first entity in the scope which contains a group of components

Returns the first entity with the components passed

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

Examples

Entity e = world.entity.getFirstWith!(Component1, Component2, Component3, ...);

Meta