1
0

AlertAutoRemoveComponent.cs 641 B

12345678910111213141516171819
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Alert;
  3. /// <summary>
  4. /// Copy of the entity's alerts that are flagged for autoRemove, so that not all of the alerts need to be checked constantly
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class AlertAutoRemoveComponent : Component
  8. {
  9. /// <summary>
  10. /// List of alerts that have to be checked on every tick for automatic removal at a specific time
  11. /// </summary>
  12. [AutoNetworkedField]
  13. [DataField]
  14. public List<AlertKey> AlertKeys = new();
  15. public override bool SendOnlyToOwner => true;
  16. }