Allow more lobby parameters to be configured.

This commit is contained in:
Pieter-Jan Briers
2020-02-08 21:23:37 +01:00
parent c7043d20b1
commit 913b4d97a1
5 changed files with 29 additions and 21 deletions

View File

@@ -190,21 +190,7 @@ namespace Content.Server.GameTicking
var ticker = IoCManager.Resolve<IGameTicker>();
Type presetType;
switch (args[0])
{
case "DeathMatch":
presetType = typeof(PresetDeathMatch);
break;
case "Sandbox":
presetType = typeof(PresetSandbox);
break;
default:
shell.SendText(player, "That is not a valid game preset!");
return;
}
ticker.SetStartPreset(presetType);
ticker.SetStartPreset(args[0]);
}
}
}