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