public void Load(string filePath) { if (_cwMap == null) { _cwMap = new Classicworld(filePath); } _currentFilePath = filePath; _cwMap.Load(); }
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); }
public bool Reload() { _cwMap = new Classicworld(_currentFilePath); _cwMap.Load(); return(true); }