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