Files
crystall-punk-14/Content.Server/GameTicking/Rules/Components/ZombieRuleComponent.cs

29 lines
926 B
C#
Raw Permalink Normal View History

2023-08-19 14:00:41 -04:00
using Content.Shared.Roles;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
2023-04-25 20:23:14 -04:00
namespace Content.Server.GameTicking.Rules.Components;
2023-04-25 20:23:14 -04:00
[RegisterComponent, Access(typeof(ZombieRuleSystem))]
public sealed partial class ZombieRuleComponent : Component
2023-04-25 20:23:14 -04:00
{
/// <summary>
/// When the round will next check for round end.
/// </summary>
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan? NextRoundEndCheck;
/// <summary>
/// The amount of time between each check for the end of the round.
/// </summary>
[DataField]
public TimeSpan EndCheckDelay = TimeSpan.FromSeconds(30);
/// <summary>
/// After this amount of the crew become zombies, the shuttle will be automatically called.
/// </summary>
[DataField]
public float ZombieShuttleCallPercentage = 0.7f;
2023-04-25 20:23:14 -04:00
}