Originally Posted by
Teemuzz
since i have no idea how others have done construction i'll claim this is the best
Code:
val POH_SAND = ZoneKey(233, 632, 2)
val POH_GRASS = ZoneKey(232, 632, 0)
val POH_PARLOUR = ZoneKey(240, 639, 0)
val POH_WOOD_ROOF = ZoneKey(233, 634, 0)
val POH_GARDEN_PORTAL = ZoneKey(232, 633, 0)
val instances: InstanceMap by inject()
command("instance") {
description = "Create test instance"
execute {
instances += {
for (x in 0 until ZoneConstants.ZONES_PER_INSTANCE) {
for (y in 0 until ZoneConstants.ZONES_PER_INSTANCE) {
this[x, y, 0] = ZonePointer(POH_SAND, ZoneConstants.ROTATION_90_CCW)
}
}
for (x in 4..7) {
for (y in 4..7) {
this[x, y, 0] = ZonePointer(POH_GRASS)
}
}
this[5, 5, 0] = ZonePointer(POH_PARLOUR, ZoneConstants.ROTATION_90_CCW)
this[5, 5, 1] = ZonePointer(POH_WOOD_ROOF)
this[6, 5, 0] = ZonePointer(POH_GARDEN_PORTAL)
}
}
}