add

fun add(component: ComponentId, noEvent: Boolean = false)

Adds a component to this entity's type, setting no data.

Parameters

noEvent

If true, will not fire an AddedComponent event.


inline fun <T : Component> add(noEvent: Boolean = false)

Adds the type T to this entity's type, setting no data.

Parameters

noEvent

If true, will not fire an AddedComponent event.