public WorldManager(Server server) { EnsureDirectory(); Generator = new ChunkGenerator(this, GetSeed()); ChunkManager = new WorldChunkManager(this); _Chunks = new ChunkSet(); Server = server; InitializeSpawn(); InitializeThreads(); InitializeWeather(); }
public bool Load() { EnsureDirectory(); //Event WorldLoadEventArgs e = new WorldLoadEventArgs(this); Server.PluginManager.CallEvent("WORLD_LOAD", e); if (e.EventCanceled) return false; //End Event Generator = new ChunkGenerator(this, GetSeed()); ChunkManager = new WorldChunkManager(this); InitializeSpawn(); InitializeThreads(); InitializeWeather(); return true; }
public bool Load() { EnsureDirectory(); //Event WorldLoadEventArgs e = new WorldLoadEventArgs(this); Server.PluginManager.CallEvent(Event.WORLD_LOAD, e); if (e.EventCanceled) return false; //End Event _ChunkProvider = new ChunkProvider(this); Generator = _ChunkProvider.GetNewGenerator(GeneratorType.Custom, GetSeed()); ChunkManager = new WorldChunkManager(this); PhysicsBlocks = new ConcurrentDictionary<int, BlockBasePhysics>(); InitializeSpawn(); InitializeThreads(); InitializeWeather(); return true; }