diff --git a/RLBotCS/Main.cs b/RLBotCS/Main.cs index 49f8beb..ac19e95 100644 --- a/RLBotCS/Main.cs +++ b/RLBotCS/Main.cs @@ -10,7 +10,7 @@ if (args.Length > 0 && args[0] == "--version") { Console.WriteLine( - "RLBotServer v5.0.0\n" + "RLBotServer v5.0.1\n" + $"Bridge {BridgeVersion.Version}\n" + "@ https://www.rlbot.org & https://github.com/RLBot/core" ); diff --git a/RLBotCS/ManagerTools/ConfigParser.cs b/RLBotCS/ManagerTools/ConfigParser.cs index fd38c97..16f500b 100644 --- a/RLBotCS/ManagerTools/ConfigParser.cs +++ b/RLBotCS/ManagerTools/ConfigParser.cs @@ -36,6 +36,7 @@ public static class Fields public const string MutatorsMaxScore = "max_score"; public const string MutatorsMultiBall = "multi_ball"; public const string MutatorsOvertime = "overtime"; + public const string MutatorsSeriesLength = "series_length"; public const string MutatorsGameSpeed = "game_speed"; public const string MutatorsBallMaxSpeed = "ball_max_speed"; public const string MutatorsBallType = "ball_type"; @@ -699,6 +700,11 @@ private MutatorSettingsT GetMutatorSettings(TomlTable mutatorTable) => Fields.MutatorsOvertime, OvertimeMutator.Unlimited ), + SeriesLength = GetEnum( + mutatorTable, + Fields.MutatorsSeriesLength, + SeriesLengthMutator.Unlimited + ), GameSpeed = GetEnum( mutatorTable, Fields.MutatorsGameSpeed, diff --git a/RLBotCSTests/ConfigParserTest.cs b/RLBotCSTests/ConfigParserTest.cs index 5d2a624..5422405 100644 --- a/RLBotCSTests/ConfigParserTest.cs +++ b/RLBotCSTests/ConfigParserTest.cs @@ -94,6 +94,7 @@ public void EdgeCases() Assert.AreEqual("something invalid", edgeMC.LauncherArg); Assert.AreEqual(MatchLengthMutator.TenMinutes, edgeMC.Mutators.MatchLength); + Assert.AreEqual(SeriesLengthMutator.FiveGames, edgeMC.Mutators.SeriesLength); Assert.AreEqual(GravityMutator.Reverse, edgeMC.Mutators.Gravity); Assert.AreEqual(PlayerClass.PsyonixBot, edgeMC.PlayerConfigurations[0].Variety.Type); diff --git a/RLBotCSTests/TestTomls/edge.toml b/RLBotCSTests/TestTomls/edge.toml index 9e643b9..454178d 100644 --- a/RLBotCSTests/TestTomls/edge.toml +++ b/RLBotCSTests/TestTomls/edge.toml @@ -11,6 +11,7 @@ enable_rendering = false [mutators] match_length = "TenMinutes" +series_length = "FiveGames" gravity = "rEvErsE" [[cars]]