on_self_event
fun <reified E : DomainEvent> on_self_event(behaviour: E.(self: Entity) -> Unit)E.(self: Entity) -> UnitWorks with: Entity
node<Npc>()
on_self_event<ProjectileHit> { npc -> npc.speak("Ouch!")}Properties
Section titled “Properties”producedOn
Section titled “producedOn”var producedOn: Int