Beispiel #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;
 }
Beispiel #2
0
 public LevelConfig(LevelConfig config)
 {
     foreach (PlayerObject player in config.players)
     {
         player.SetStandartValues();
     }
     this.players = config.players;
     this.map     = config.map;
 }
Beispiel #3
0
 public Level(LevelConfig config) : this()
 {
     LoadConfig(config);
 }