EntityMutateOperations

Functions

Link copied to clipboard
abstract fun addComponentFor(entity: Entity, componentId: ComponentId, noEvent: Boolean)

Adds this componentId to the entity's type but doesn't store any data.

Link copied to clipboard
abstract fun clearEntity(entity: Entity)

Removes all components from an entity.

Link copied to clipboard
abstract fun removeComponentFor(entity: Entity, componentId: ComponentId): Boolean

Removes a componentId from an entity and clears any data previously associated with it.

Link copied to clipboard
abstract fun setComponentFor(entity: Entity, componentId: ComponentId, data: Component, noEvent: Boolean)

Sets data under a componentId for an entity.