Entity.remove

Remove a component

It's called by passing the component's id Every time you inittialize a new component, an unique id is generated If you don't know which id 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. void remove(string id)
    class Entity
    @safe pure
    void
    remove
    (
    in string id
    )
  2. void remove()

Examples

e.remove(world.component.idOf!Foo);

See Also

remove(C : IComponent)()

Meta