Ejemplo n.º 1
0
 public void DeleteChunk(int x, int y, int z)
 {
     if (MapUtil.IsValidPos(d_Map, x, y, z))
     {
         x = x / chunksize;
         y = y / chunksize;
         z = z / chunksize;
         ChunkDb.DeleteChunk(d_ChunkDb, x, y, z);
         d_Map.SetChunkValid(x, y, z, null);
         // update related chunk at clients
         foreach (var k in clients)
         {
             //todo wrong
             //k.Value.chunksseen.Clear();
             Array.Clear(k.Value.chunksseen, 0, k.Value.chunksseen.Length);
         }
     }
 }