Sandbox panel

This commit is contained in:
Pieter-Jan Briers
2019-10-02 10:45:06 +02:00
parent 18392610c9
commit a2d8fc1ef9
11 changed files with 320 additions and 4 deletions

View File

@@ -156,8 +156,7 @@ namespace Content.Server.GameTicking
RunLevel = GameRunLevel.InRound;
// TODO: Allow other presets to be selected.
var preset = (GamePreset)_dynamicTypeFactory.CreateInstance(_presetType ?? typeof(PresetSandbox));
var preset = _dynamicTypeFactory.CreateInstance<GamePreset>(_presetType ?? typeof(PresetSandbox));
preset.Start();
foreach (var (playerSession, ready) in _playersInLobby.ToList())