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; }
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; }
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; }
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; }