ColorFlashEffectEvent.cs 550 B

1234567891011121314151617181920212223
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Effects;
  3. /// <summary>
  4. /// Raised on the server and sent to a client to play the color flash animation.
  5. /// </summary>
  6. [Serializable, NetSerializable]
  7. public sealed class ColorFlashEffectEvent : EntityEventArgs
  8. {
  9. /// <summary>
  10. /// Color to play for the flash.
  11. /// </summary>
  12. public Color Color;
  13. public List<NetEntity> Entities;
  14. public ColorFlashEffectEvent(Color color, List<NetEntity> entities)
  15. {
  16. Color = color;
  17. Entities = entities;
  18. }
  19. }