Re-organize all projects (#4166)
This commit is contained in:
22
Content.Server/GameTicking/Presets/PresetSandbox.cs
Normal file
22
Content.Server/GameTicking/Presets/PresetSandbox.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.Sandbox;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.GameTicking.Presets
|
||||
{
|
||||
[GamePreset("sandbox")]
|
||||
public sealed class PresetSandbox : GamePreset
|
||||
{
|
||||
[Dependency] private readonly ISandboxManager _sandboxManager = default!;
|
||||
|
||||
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
|
||||
{
|
||||
_sandboxManager.IsSandboxEnabled = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override string ModeTitle => "Sandbox";
|
||||
public override string Description => "No stress, build something!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user