Skip to content

CopiedSpace

class CopiedSpace
constructor(
key: String,
zones: List<SpaceZone>,
selection: SpaceSelection? = null
)
Example
val lair = CopiedSpace("boss_lair", listOf(SpaceZone(400, 400, 0), SpaceZone(401, 400, 0)))
on_world_start {
Spaces.declareCopied(lair) { copy -> Logger.info("a copy of the lair is shard ${copy.shard}") }
Logger.info("the lair is ${lair.zones.size} zones")
}
val zones: List<SpaceZone>