예제 #1
0
 private void LoadConfig(LevelConfig config)
 {
     startConfig             = new LevelConfig(config);
     map                     = config.map;
     this.map.contentManager = Content;
     players                 = config.players;
     map.OnFinish           -= OnFinish;
     map.OnFinish           += OnFinish;
 }
예제 #2
0
 public LevelConfig(LevelConfig config)
 {
     foreach (PlayerObject player in config.players)
     {
         player.SetStandartValues();
     }
     this.players = config.players;
     this.map     = config.map;
 }
예제 #3
0
 public Level(LevelConfig config) : this()
 {
     LoadConfig(config);
 }