plusAssign

operator fun Entity.plusAssign(component: Component)

Adds a constructed Component to this Entity. If a Component of the same type exists, it will be replaced.

Parameters

component

will be added to this Entity.