Files
tbd-station-14/Content.Shared/Alert/AlertAutoRemoveComponent.cs
Princess Cheeseballs d488ca96b2 Alerts Cleanup and API (#39544)
* alert cleanup and API

* I expect update loops to be at the top.

* Address review

* Address review x 2

* Merg my PR

* Fix

* Update Content.Shared/Alert/AlertsSystem.cs

webedit

Co-authored-by: Perry Fraser <perryprog@users.noreply.github.com>

* FIX THAT TEST FAIL!!!!

* Me when I forget to actually give you alerts

* Hammedborgar

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Co-authored-by: Perry Fraser <perryprog@users.noreply.github.com>
2025-09-05 12:45:48 +03:00

20 lines
644 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Alert;
/// <summary>
/// Copy of the entity's alerts that are flagged for autoRemove, so that not all of the alerts need to be checked constantly
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class AlertAutoRemoveComponent : Component
{
/// <summary>
/// List of alerts that have to be checked on every tick for automatic removal at a specific time
/// </summary>
[AutoNetworkedField]
[DataField]
public HashSet<AlertKey> AlertKeys = new();
public override bool SendOnlyToOwner => true;
}