fun <reified K : Entity> on_self_spawn(behaviour: (self: K) -> Unit)
(self: K) -> Unit
Works with: Entity
Entity
node<Npc>() on_self_spawn { npc -> npc.speak("I guard this cave.")}