callEvent

inline fun <T> callEvent(vararg components: Any, source: Entity? = null, crossinline result: (event: Entity) -> T): T

Calls an event with components attached to it and this entity as the target, calculating a result after all handlers have run.


fun callEvent(vararg components: Any, source: Entity? = null)

Calls an event with components attached to it and this entity as the target.


inline fun callEvent(source: Entity? = null, crossinline initEvent: Entity.() -> Unit)

Calls an event on this entity using a temporary entity that can be configured with initEvent.


inline fun <T> callEvent(crossinline init: Entity.() -> Unit, source: Entity? = null, crossinline result: (event: Entity) -> T): T

Calls an event on this entity using a temporary entity that can be configured with init, calculating a result after all handlers have run.


fun callEvent(event: Entity, source: Entity? = null)

Calls an event using a specific entity on this entity.