перенос файлов сервера из папки White в _White

This commit is contained in:
Remuchi
2024-01-28 18:18:54 +07:00
parent 21dbccfec9
commit 1e4ad59270
309 changed files with 450 additions and 437 deletions

View File

@@ -0,0 +1,30 @@
using Content.Server.GameTicking;
using Content.Shared.GameTicking;
namespace Content.Server._White.EndOfRoundStats.Command;
public sealed class CommandStatSystem : EntitySystem
{
public List<(string, string)> eorStats = new();
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<RoundEndTextAppendEvent>(OnRoundEnd);
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRoundRestart);
}
private void OnRoundEnd(RoundEndTextAppendEvent ev)
{
foreach (var (stat, color) in eorStats)
{
ev.AddLine($"[color={color}]{stat}[/color]");
}
}
private void OnRoundRestart(RoundRestartCleanupEvent ev)
{
eorStats.Clear();
}
}