コード例 #1
0
        public bool dataEqualFor(GeoBlock block)
        {
            GeoByteBuffer geoBlockData = _geoBlocksData[block.getBlockX(), block.getBlockY()];

            geoBlockData.clear();
            return(block.dataEquals(geoBlockData));
        }
コード例 #2
0
        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);
        }