Ejemplo n.º 1
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.º 2
0
            if (nbtstr == null) {
                return false;
            }

            NbtTree tree = new NbtTree(nbtstr);

            _level = new Level(this);
            _level = _level.LoadTreeSafe(tree.Root);

            return _level != null;
        }


        internal static void OnResolveOpen (object sender, OpenWorldEventArgs e)
        {
            try {
                AlphaWorld world = new AlphaWorld().OpenWorld(e.Path);