Skip to content

AreaRef

data class AreaRef(val key: String)
Example
val pond: AreaRef = define_area("duck_pond", from = Tile3(3200, 3200), to = Tile3(3210, 3210))
on_enter_area(pond) { who -> who.message("You reach the ${pond.key}.") }
on_leave_area(Area.castle_courtyard) { who -> who.message("You leave the courtyard.") }
val key: String