Skip to content

on_create

fun <reified T : Entity> on_create(behaviour: T.(subject: T) -> Unit)
T.(subject: T) -> Unit
Example
on_create<Npc> { npc ->
Logger.info("an NPC was made at ${npc.tile4}")
}