/// <summary> /// Applies a configuration to the match. /// </summary> /// <param name="conf"></param> private void ApplyParameters(Configuration conf) { fieldSize = new Coordinates(conf.GetValue <int>("mbc_field_width"), conf.GetValue <int>("mbc_field_height")); numberOfRounds = conf.GetValue <int>("mbc_match_rounds"); startingShips = ShipList.ShipsFromLengths(conf.GetList <int>("mbc_ship_sizes")); timeLimit = conf.GetValue <int>("mbc_player_timeout"); gameModes = conf.GetList <GameMode>("mbc_game_mode"); }