fish-station/Content.Server/_Sunrise/StationEvents/Components/AnnounceRuleComponent.cs
pacable cc596eb093
Оповещение о гриншифте на станции (#37)
* added announcement about greenshift. Also added event preset for admins.

* fix build errors

---------

Co-authored-by: Vigers Ray <60344369+VigersRay@users.noreply.github.com>
2024-06-10 20:19:04 +03:00

23 lines
605 B
C#

using Content.Server.StationEvents.Events;
using Robust.Shared.Audio;
using System.Threading;
namespace Content.Server.StationEvents.Components;
[RegisterComponent]
public sealed partial class AnnounceRuleComponent : Component
{
[DataField]
public bool EnableAnnouncement;
[DataField]
public SoundSpecifier? AnnounceAudio;
[DataField("roundStartAnnouncementDelay")]
public int RoundStartAnnouncementDelay = 60; // 1 minute from roundstart by default
[DataField("announcementText")]
public string? AnnouncementText;
public CancellationToken TimerCancel = new();
}