Files
wwdpublic/Content.Server/GameTicking/Rules/Components/RevolutionaryRuleComponent.cs
2025-03-12 14:33:53 +03:00

53 lines
1.8 KiB
C#

using Content.Shared.Roles;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.GameTicking.Rules.Components;
/// <summary>
/// Component for the RevolutionaryRuleSystem that stores info about winning/losing, player counts required for starting, as well as prototypes for Revolutionaries and their gear.
/// </summary>
[RegisterComponent, Access(typeof(RevolutionaryRuleSystem))]
public sealed partial class RevolutionaryRuleComponent : Component
{
/// <summary>
/// When the round will if all the command are dead (Incase they are in space)
/// </summary>
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan CommandCheck;
/// <summary>
/// The amount of time between each check for command check.
/// </summary>
[DataField]
public TimeSpan TimerWait = TimeSpan.FromSeconds(20);
/// <summary>
/// The time it takes after the last head is killed for the shuttle to arrive.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public TimeSpan ShuttleCallTime = TimeSpan.FromMinutes(5);
// WWDP edit
/// <summary>
/// Announcement sender if the Revolution wins.
/// </summary>
[DataField]
public string RoundEndTextSender = "comms-console-announcement-title-revolution";
/// <summary>
/// Text to announce if the Revolution wins.
/// </summary>
[DataField]
public string RoundEndTextShuttleCall = "revolution-win-announcement-shuttle-call";
/// <summary>
/// Text to announce if the Revolution wins. Used if shuttle is already called
/// </summary>
[DataField]
public string RoundEndTextAnnouncement = "revolution-win-announcement";
// WWDP edit end
}