/* * 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(); }
/* * 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(); }