Entity.add

Add a component

Every time you inittialize a new component, an unique id is generated Use this function only if you want to generate the component with values

  1. T add(T t)
    class Entity
    @safe pure
    T
    add
    ()
    (
    T t
    )
  2. T add()

Examples

e.AddComponent(new Foo(value1, value2, ...));

See Also

T add(T : IComponent)()

Meta