You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
511 B

package technology.zim.data
//Data structure wrapper for more easily readable code
@JvmInline
value class WorldData constructor(val data: ArrayList<ArrayList<TileProperties>>) {
fun setSize(xmin : Int, ymin : Int) {
with(data) {
this.ensureCapacity(xmin)
this.fill(ArrayList<TileProperties>())
}
for(y in data) {
with(y) {
this.ensureCapacity((ymin))
this.fill(TileProperties())
}
}
}
}