Entity.component

Set the value of a component of the entity.

  1. C* component()
  2. void component(C c)
    struct Entity
    @property
    void
    component
    (
    C
    )
    (
    auto ref C c
    )

Parameters

C

Component to set.

Throws

EntityException if the entity is invalid. ComponentException if the component is not registered.

Meta