CatStation/Content.Server/StationEvents/Components/AlertLevelInterceptionRuleComponent.cs
slarticodefast 0b5bacf5c2
Refactor and predict Alert Levels (#41122)
* prediction

* fix

* reviews

* warnings

* cleanup

* grupdate

* bruh

---------

Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
2026-07-27 05:11:33 +00:00

19 lines
711 B
C#

using Content.Server.StationEvents.Events;
using Content.Shared.AlertLevel;
using Robust.Shared.Prototypes;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// Added to gamerule entity prototypes to make them change the station's alert level when starting the gamerule.
/// This will only apply if the station is currently on its default alert level.
/// </summary>
[RegisterComponent, Access(typeof(AlertLevelInterceptionRule))]
public sealed partial class AlertLevelInterceptionRuleComponent : Component
{
/// <summary>
/// Alert level to set the station to when the event starts.
/// </summary>
[DataField]
public ProtoId<AlertLevelPrototype> AlertLevel = "Blue";
}