public override bool dataEquals(GeoReader reader)
 {
     if (getType() != GeoRegion.getType(reader, true))
     {
         return(false);
     }
     //
     GeoCell[] cells1D;
     for (int cellX = 0, cellY, layer; cellX < GeoEngine.GEO_BLOCK_SHIFT; cellX++)
     {
         for (cellY = 0; cellY < GeoEngine.GEO_BLOCK_SHIFT; cellY++)
         {
             cells1D = _cells3D[cellX, cellY];
             //
             if (cells1D.Length != reader.get())
             {
                 return(false);
             }
             //
             for (layer = cells1D.Length; layer-- > 0;)
             {
                 if (cells1D[layer].getHeightAndNSWE() != reader.getShort())
                 {
                     return(false);
                 }
             }
         }
     }
     return(true);
 }
Example #2
0
 public override bool dataEquals(GeoReader reader)
 {
     if (getType() != GeoRegion.getType(reader, true))
     {
         return(false);
     }
     if (_cells[0].getHeight() != reader.getShort())
     {
         return(false);
     }
     return(true);
 }
Example #3
0
 public override bool dataEquals(GeoReader reader)
 {
     if (getType() != GeoRegion.getType(reader, true))
     {
         return(false);
     }
     //
     for (int x = 0, y; x < GeoEngine.GEO_BLOCK_SHIFT; x++)
     {
         for (y = 0; y < GeoEngine.GEO_BLOCK_SHIFT; y++)
         {
             if (_cells[indexOf(x, y)].getHeightAndNSWE() != reader.getShort())
             {
                 return(false);
             }
         }
     }
     return(true);
 }