EntityManager.getOrCreate

Returns pointer to the component of type C. Creates component first if entity had no such component. Works only with non-flag components.

struct EntityManager
C*
getOrCreate
(
C
)
(,
C defVal = C.init
)

Meta