Entity.add - multiple declarations

Function Entity.add

Add a Component instance to this entity.

void add (
  inout(Component) component

Function Entity.add

Add a new Component given its type and, optionally, a default value and its name

void add(T) (
  T data = T.init,
  string name = fullyQualifiedName!T
if (isStruct!T);

Prefer Plain Old Data structs constructed with component for Component data.