public bool dataEqualFor(GeoBlock block) { GeoByteBuffer geoBlockData = _geoBlocksData[block.getBlockX(), block.getBlockY()]; geoBlockData.clear(); return(block.dataEquals(geoBlockData)); }
public void restoreBlock(GeoBlock block) { int blockX = block.getBlockX(); int blockY = block.getBlockY(); GeoByteBuffer reader = _geoBlocksData[blockX, blockY]; reader.clear(); block.unload(); _geoBlocks[blockX, blockY] = readBlock(blockX, blockY, reader, true); }