BeforeAlertSeverityCheckEvent.cs 553 B

12345678910111213141516
  1. using Content.Shared.Alert;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization;
  4. namespace Content.Shared.Mobs.Events;
  5. /// <summary>
  6. /// Event for allowing the interrupting and change of the mob threshold severity alert
  7. /// </summary>
  8. [Serializable, NetSerializable]
  9. public sealed class BeforeAlertSeverityCheckEvent(ProtoId<AlertPrototype> currentAlert, short severity) : EntityEventArgs
  10. {
  11. public bool CancelUpdate = false;
  12. public ProtoId<AlertPrototype> CurrentAlert = currentAlert;
  13. public short Severity = severity;
  14. }