from editortool.map.chunk import Tile class Chunk: def __init__(self, x=0, y=0, z=0, size_x=1, size_y=1, size_z=1): self.x = x self.y = y self.z = z self.data = [[[Tile() for _ in range(size_z)] for _ in range(size_y)] for _ in range(size_x)] def draw(self): for x in range(len(self.data)): for y in range(len(self.data[x])): for z in range(len(self.data[x][y])): self.data[x][y][z].draw(x, y, z)