Files
OldThink/Content.Server/GameTicking/Presets/PresetDeathMatch.cs

22 lines
662 B
C#
Raw Normal View History

using System.Collections.Generic;
2021-06-09 22:19:39 +02:00
using Content.Server.GameTicking.Rules;
using Robust.Server.Player;
using Robust.Shared.GameObjects;
2019-05-08 09:55:00 +02:00
using Robust.Shared.IoC;
2021-06-09 22:19:39 +02:00
namespace Content.Server.GameTicking.Presets
2019-05-08 09:55:00 +02:00
{
[GamePreset("deathmatch")]
2019-05-08 09:55:00 +02:00
public sealed class PresetDeathMatch : GamePreset
{
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
2019-05-08 09:55:00 +02:00
{
EntitySystem.Get<GameTicker>().AddGameRule<RuleDeathMatch>();
return true;
2019-05-08 09:55:00 +02:00
}
2019-10-18 14:28:39 +02:00
public override string ModeTitle => "Deathmatch";
public override string Description => "Kill anything that moves!";
2019-05-08 09:55:00 +02:00
}
}