2020-05-03 11:25:39 +02:00
|
|
|
|
using System.Collections.Generic;
|
2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Server.GameTicking.Rules;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Server.Player;
|
2021-06-20 10:09:24 +02:00
|
|
|
|
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
|
|
|
|
{
|
2021-02-14 15:39:24 +01:00
|
|
|
|
[GamePreset("deathmatch")]
|
2019-05-08 09:55:00 +02:00
|
|
|
|
public sealed class PresetDeathMatch : GamePreset
|
|
|
|
|
|
{
|
2020-06-21 22:05:47 +02:00
|
|
|
|
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
|
2019-05-08 09:55:00 +02:00
|
|
|
|
{
|
2021-06-20 10:09:24 +02:00
|
|
|
|
EntitySystem.Get<GameTicker>().AddGameRule<RuleDeathMatch>();
|
2020-05-03 11:25:39 +02:00
|
|
|
|
return true;
|
2019-05-08 09:55:00 +02:00
|
|
|
|
}
|
2019-10-18 14:28:39 +02:00
|
|
|
|
|
2020-04-08 06:07:54 -05:00
|
|
|
|
public override string ModeTitle => "Deathmatch";
|
|
|
|
|
|
public override string Description => "Kill anything that moves!";
|
2019-05-08 09:55:00 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|