Sandbox panel
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
using Content.Server.Interfaces.GameTicking;
|
||||
using Content.Server.Sandbox;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.GameTicking.GamePresets
|
||||
{
|
||||
public sealed class PresetSandbox : GamePreset
|
||||
{
|
||||
#pragma warning disable 649
|
||||
[Dependency] private readonly ISandboxManager _sandboxManager;
|
||||
#pragma warning restore 649
|
||||
|
||||
public override void Start()
|
||||
{
|
||||
// Nothing yet.
|
||||
_sandboxManager.IsSandboxEnabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user