2023-08-01 19:02:54 +03:00
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Effects;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Raised on the server and sent to a client to play the color flash animation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class ColorFlashEffectEvent : EntityEventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Color to play for the flash.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Color Color;
|
|
|
|
|
|
2023-09-11 09:42:41 +10:00
|
|
|
public List<NetEntity> Entities;
|
2023-08-01 19:02:54 +03:00
|
|
|
|
2023-09-11 09:42:41 +10:00
|
|
|
public ColorFlashEffectEvent(Color color, List<NetEntity> entities)
|
2023-08-01 19:02:54 +03:00
|
|
|
{
|
|
|
|
|
Color = color;
|
|
|
|
|
Entities = entities;
|
|
|
|
|
}
|
2023-08-11 03:44:52 +10:00
|
|
|
}
|