Entity.contains

Contains a component

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

  1. bool contains(string id)
  2. bool contains()
    class Entity
    const
    bool
    contains
    ()
    ()

Return Value

Type: bool

True if the entity contains the component False otherwise

Examples

e.contains!Foo;

Meta