Shard
open class Shardon_input<DeveloperCommandInput> { player -> if (name != "arena") return@on_input val arena = Scenes.boss_arena.createShard() arena.onLeave { leaver -> leaver.message("You leave the arena (${arena.players.size} still inside).") } player.teleport(arena.tile(8, 3))}fun tile( x: Int, z: Int, height: Int = 0): Tile4fun at(point: Point): Tile4players
Section titled “players”val players: List<Actor>val npcs: List<Npc>isDestroyed
Section titled “isDestroyed”val isDestroyed: Booleandestroy
Section titled “destroy”fun destroy(sendTo: Tile4)fun destroy(sendTo: Point): UnitonLeave
Section titled “onLeave”fun onLeave(block: (player: Actor) -> Unit)