1
0

UpdateAlertSpriteEvent.cs 550 B

123456789101112131415161718192021
  1. using Content.Shared.Alert;
  2. using Robust.Client.GameObjects;
  3. namespace Content.Client.Alerts;
  4. /// <summary>
  5. /// Event raised on an entity with alerts in order to allow it to update visuals for the alert sprite entity.
  6. /// </summary>
  7. [ByRefEvent]
  8. public record struct UpdateAlertSpriteEvent
  9. {
  10. public Entity<SpriteComponent> SpriteViewEnt;
  11. public AlertPrototype Alert;
  12. public UpdateAlertSpriteEvent(Entity<SpriteComponent> spriteViewEnt, AlertPrototype alert)
  13. {
  14. SpriteViewEnt = spriteViewEnt;
  15. Alert = alert;
  16. }
  17. }