예제 #1
0
파일: Chunk.cs 프로젝트: IAmSegfault/zx
 public Chunk(int x, int y, int z, int width, int height, int length)
 {
     this.x      = x;
     this.y      = y;
     this.z      = z;
     this.width  = width;
     this.height = height;
     this.length = length;
     for (int i = 0; i < width; i++)
     {
         for (int j = 0; j < height; j++)
         {
             for (int k = 0; k < length; k++)
             {
                 ChunkMapPosition position = new ChunkMapPosition(i, j, k);
                 this.chunkMaps.Add(position);
             }
         }
     }
 }
예제 #2
0
 public MapPosition(int cX, int cY, int cZ, int wX, int wY)
 {
     this.worldMapPosition = new WorldMapPosition(wX, wY);
     this.chunkMapPosition = new ChunkMapPosition(cX, cY, cZ);
 }