2022-09-06 18:01:35 +10:00
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Weapons.Melee;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Raised on the server and sent to a client to play the damage animation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public sealed class DamageEffectEvent : EntityEventArgs
|
|
|
|
|
{
|
2022-09-29 15:51:59 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Color to play for the damage flash.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Color Color;
|
2022-09-06 18:01:35 +10:00
|
|
|
|
2022-09-29 15:51:59 +10:00
|
|
|
public List<EntityUid> Entities;
|
|
|
|
|
|
|
|
|
|
public DamageEffectEvent(Color color, List<EntityUid> entities)
|
2022-09-06 18:01:35 +10:00
|
|
|
{
|
2022-09-29 15:51:59 +10:00
|
|
|
Color = color;
|
|
|
|
|
Entities = entities;
|
2022-09-06 18:01:35 +10:00
|
|
|
}
|
|
|
|
|
}
|