Entity.containsAny

Contains any component

You call this function by passing an array of the component ids Every time you create a component, it'll generate an unique id If you don't know which ids you should pass, use the other variant of this function, which is the recomended one, as it will get the correct id for you

  1. bool containsAny(string[] ids)
    class Entity
    @safe pure const
    bool
    containsAny
    (
    in string[] ids
    )
  2. bool containsAny()

Return Value

Type: bool

True if the entity contains at least one of the components False otherwise

Examples

e.containsAny([world.component.idOf!Foo, world.component.idOf!Bar]);

See Also

containsAny(C...)()

Meta