Entity.contains - multiple declarations

Function Entity.contains

Determines whether this Entity contains a given Component instance.

bool contains (
  inout(Component) component
) const;

Complexity

Constant

Function Entity.contains

Determines whether this Entity contains a NamedComponent instance given its name.

bool contains (
  string name
) const;

Complexity

Linear

Function Entity.contains

Determines whether this Entity contains a Component given its type and, optionally, its name.

bool contains(T) (
  string name = ""
) const
if (storableAsComponent!T);

Complexity

Linear