public WorldManager(World defaultWorld) { _worlds = new Dictionary<string, World>(); _defaultWorld = defaultWorld.Name; _currentWorld = _defaultWorld; AddWorld(defaultWorld); CurrentWorld.Initialize(); }
public void AddWorld(World world) { _worlds[world.Name] = world; world.EndWorld += WorldEndedHandler; }