set

inline fun <T : Component> set(component: T, kClass: KClass<out T> = T::class, noEvent: Boolean = false)

Sets a component that holds data for this entity

Parameters

noEvent

If true, will not fire a AddedComponent.


fun set(component: Component, componentId: ComponentId, noEvent: Boolean = false)
fun set(components: Collection<Component>)