Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }