Files
OldThink/Content.Server/GameTicking/Presets/PresetDeathMatch.cs
2021-06-09 22:19:39 +02:00

23 lines
685 B
C#

using System.Collections.Generic;
using Content.Server.GameTicking.Rules;
using Robust.Server.Player;
using Robust.Shared.IoC;
namespace Content.Server.GameTicking.Presets
{
[GamePreset("deathmatch")]
public sealed class PresetDeathMatch : GamePreset
{
[Dependency] private readonly IGameTicker _gameTicker = default!;
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
{
_gameTicker.AddGameRule<RuleDeathMatch>();
return true;
}
public override string ModeTitle => "Deathmatch";
public override string Description => "Kill anything that moves!";
}
}