示例#1
0
 /*
  * Used for building the terrain
  */
 private void AddCube(int x, int y, int z, PlanetChunk chunk)
 {
     DestroyChunk(chunk);
     // TODO: NEED TO KEEP THE CHANGED STATE!!!!
     chunk.ReBuildTheChunk();
     chunk.CubeIsSolid[x, y, z] = true; // draw the cube
     chunk.DrawChunk();
 }
示例#2
0
 /*
  * Used for digging the terrain
  */
 private void RemoveCube(int x, int y, int z, PlanetChunk chunk)
 {
     DestroyChunk(chunk);
     // TODO: NEED TO KEEP THE CHANGED STATE!!!!
     chunk.ReBuildTheChunk();
     chunk.CubeIsSolid[x, y, z] = false; // stop the cube from being drawn
     chunk.DrawChunk();
 }