Files
wwdpublic/Content.Shared/Targeting/Events.cs
2024-11-21 17:49:04 +07:00

39 lines
923 B
C#

using Content.Shared.Targeting;
using Robust.Shared.Serialization;
namespace Content.Shared.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;
}
}
public sealed class RefreshInventorySlotsEvent : EntityEventArgs
{
public string SlotName { get; }
public RefreshInventorySlotsEvent(string slotName)
{
SlotName = slotName;
}
}