mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-26 01:57:51 +03:00
39 lines
923 B
C#
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;
|
|
}
|
|
}
|