Entity.containsAny

Contains any component

It's recomended to always use this function, as it will do the 'hard work' for you

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

Return Value

Type: bool

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

Examples

e.hasAnyComponents!(Foo, Goo);

Meta