Example #1
0
        private void OpenDimension(string dim)
        {
            string path = Path;

            if (String.IsNullOrEmpty(dim))
            {
                path = IO.Path.Combine(path, _REGION_DIR);
            }
            else
            {
                path = IO.Path.Combine(path, dim);
                path = IO.Path.Combine(path, _REGION_DIR);
            }

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }

            ChunkCache cc = new ChunkCache(_prefCacheSize);

            BetaRegionManager  rm = new BetaRegionManager(path, cc);
            RegionChunkManager cm = new RegionChunkManager(rm, cc);
            BlockManager       bm = new AlphaBlockManager(cm);

            _regionMgrs[dim] = rm;
            _chunkMgrs[dim]  = cm;
            _blockMgrs[dim]  = bm;

            _caches[dim] = cc;
        }
Example #2
0
        private void OpenDimension(string dim)
        {
            string path = Path;

            if (!String.IsNullOrEmpty(dim))
            {
                path = IO.Path.Combine(path, dim);
            }

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }

            AlphaChunkManager cm = new AlphaChunkManager(path);
            BlockManager      bm = new AlphaBlockManager(cm);

            _chunkMgrs[dim] = cm;
            _blockMgrs[dim] = bm;
        }
Example #3
0
        private void OpenDimension(int dim)
        {
            string path = Path;

            if (dim != Dimension.DEFAULT)
            {
                path = IO.Path.Combine(path, "DIM" + dim);
            }

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }

            AlphaChunkManager cm = new AlphaChunkManager(path);
            BlockManager      bm = new AlphaBlockManager(cm);

            _chunkMgrs[dim] = cm;
            _blockMgrs[dim] = bm;
        }
Example #4
0
        private void OpenDimension(string dim)
        {
            string path = Path;
            if (!String.IsNullOrEmpty(dim)) {
                path = IO.Path.Combine(path, dim);
            }

            if (!Directory.Exists(path)) {
                Directory.CreateDirectory(path);
            }

            AlphaChunkManager cm = new AlphaChunkManager(path);
            BlockManager bm = new AlphaBlockManager(cm);

            _chunkMgrs[dim] = cm;
            _blockMgrs[dim] = bm;
        }
Example #5
0
        private void OpenDimension(int dim)
        {
            string path = Path;
            if (dim == Dimension.DEFAULT) {
                path = IO.Path.Combine(path, _REGION_DIR);
            }
            else {
                path = IO.Path.Combine(path, "DIM" + dim);
                path = IO.Path.Combine(path, _REGION_DIR);
            }

            if (!Directory.Exists(path)) {
                Directory.CreateDirectory(path);
            }

            ChunkCache cc = new ChunkCache(_prefCacheSize);

            BetaRegionManager rm = new BetaRegionManager(path, cc);
            RegionChunkManager cm = new RegionChunkManager(rm, cc);
            BlockManager bm = new AlphaBlockManager(cm);

            _regionMgrs[dim] = rm;
            _chunkMgrs[dim] = cm;
            _blockMgrs[dim] = bm;

            _caches[dim] = cc;
        }
Example #6
0
        private void OpenDimension(int dim)
        {
            string path = Path;
            if (dim != Dimension.DEFAULT) {
                path = IO.Path.Combine(path, "DIM" + dim);
            }

            if (!Directory.Exists(path)) {
                Directory.CreateDirectory(path);
            }

            AlphaChunkManager cm = new AlphaChunkManager(path);
            BlockManager bm = new AlphaBlockManager(cm);

            _chunkMgrs[dim] = cm;
            _blockMgrs[dim] = bm;
        }