Skip to content

on_world_click

fun on_world_click(behaviour: WorldClick.(subject: Entity) -> Unit)
WorldClick.(subject: Entity) -> Unit

Entity

Example
on_world_click { player ->
if (controlHeld) player.message("You run.")
player.flag(Tile4(tile, player.shardId))
}
val tile: Tile3
val controlHeld: Boolean