Beispiel #1
0
        public void Load(string filePath)
        {
            if (_cwMap == null)
            {
                _cwMap = new Classicworld(filePath);
            }

            _currentFilePath = filePath;
            _cwMap.Load();
        }
Beispiel #2
0
        public void CreateNew(Vector3S size, string filePath, string mapName)
        {
            _cwMap = new Classicworld(size.X, size.Z, size.Y)
            {
                MapName            = mapName,
                GeneratingSoftware = "Hypercube",
                GeneratorName      = "Blank",
                CreatingUsername   = "******",
                CreatingService    = "Classicube",
                SpawnX             = (short)(size.X / 2),
                SpawnY             = (short)(size.Z / 2),
                SpawnZ             = (short)(size.Y / 2),
            };

            _currentFilePath = filePath;
            _cwMap.Save(filePath);
        }
Beispiel #3
0
 public bool Reload()
 {
     _cwMap = new Classicworld(_currentFilePath);
     _cwMap.Load();
     return(true);
 }