コード例 #1
0
 public D3Map(string folder)
 {
     _mapPath    = folder;
     MapSize     = new Vector3S();
     MapSpawn    = new MinecraftLocation();
     _configFile = new PreferenceLoader(ConfigName, null, folder);
     Load();
 }
コード例 #2
0
        public D3Map(string folder, string name, short sizeX, short sizeY, short sizeZ)
        {
            _mapPath       = folder;
            _configFile    = new PreferenceLoader(ConfigName, null, folder);
            _UUID          = GenerateUuid();
            _saveInterval  = 10;
            _serverVersion = 1004;
            _overviewType  = D3OverviewType.Iso;
            Name           = name;
            MapSize        = new Vector3S(sizeX, sizeY, sizeZ);

            MapSpawn = new MinecraftLocation();
            MapSpawn.SetAsBlockCoords(new Vector3S(sizeX / 2, sizeY / 2, sizeZ / 2));

            MapData = new byte[(sizeX * sizeY * sizeZ) * 4];
        }