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