CatStation/Content.Shared/AlertLevel/AlertLevelDisplayComponent.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

18 lines
602 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.AlertLevel;
/// <summary>
/// Allows an entity to change visuals depending on the station's current alertlevel.
/// </summary>
[RegisterComponent]
public sealed partial class AlertLevelDisplayComponent : Component
{
/// <summary>
/// The RSI state to use for each alert level.
/// Changes the <see cref="AlertLevelDisplay.Layer"/> layer accordingly.
/// If the device is unpowered that layer will be hidden.
/// </summary>
[DataField]
public Dictionary<ProtoId<AlertLevelPrototype>, string> AlertVisuals = new();
}