Delta-v/Content.Shared/_Shitmed/Targeting/Events.cs

29 lines
738 B
C#

using Content.Shared._Shitmed.Targeting;
using Robust.Shared.Serialization;
namespace Content.Shared._Shitmed.Targeting.Events;
[Serializable, NetSerializable]
public sealed class TargetChangeEvent : EntityEventArgs
{
public NetEntity Uid { get; }
public TargetBodyPart BodyPart { get; }
public TargetChangeEvent(NetEntity uid, TargetBodyPart bodyPart)
{
Uid = uid;
BodyPart = bodyPart;
}
}
[Serializable, NetSerializable]
public sealed class TargetIntegrityChangeEvent : EntityEventArgs
{
public NetEntity Uid { get; }
public bool RefreshUi { get; }
public TargetIntegrityChangeEvent(NetEntity uid, bool refreshUi = true)
{
Uid = uid;
RefreshUi = refreshUi;
}
}