Entity.register

Register a component C to an entity.

struct Entity
C*
register
(
C
Args...
)
(
Args args
)

Return Value

Type: C*

A pointer on the component for this entity.

Throws

EntityException if the entity is invalid. ComponentException if there is no room for that component or if if the component is already registered.

Meta