Entity.containsAll

Contains components

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 containsAll(string[] ids)
    class Entity
    @safe pure const
    bool
    containsAll
    (
    in string[] ids
    )
  2. bool containsAll()

Return Value

Type: bool

True if all the components exist False otherwise

Examples

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

See Also

containsAll(C...)()

Meta