mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-25 01:27:06 +03:00
28 lines
1011 B
C#
28 lines
1011 B
C#
using Content.Shared.Humanoid;
|
|
|
|
namespace Content.Shared.Body.Part;
|
|
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartAddedEvent(string Slot, Entity<BodyPartComponent> Part);
|
|
|
|
// Kind of a clone of the above for surgical reattachment specifically.
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartAttachedEvent(Entity<BodyPartComponent> Part);
|
|
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartRemovedEvent(string Slot, Entity<BodyPartComponent> Part);
|
|
|
|
// Kind of a clone of the above for any instances where we call DropPart(), reasoning being that RemovedEvent fires off
|
|
// a lot more often than what I'd like due to PVS.
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartDroppedEvent(Entity<BodyPartComponent> Part);
|
|
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartEnableChangedEvent(bool Enabled);
|
|
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartEnabledEvent(Entity<BodyPartComponent> Part);
|
|
|
|
[ByRefEvent]
|
|
public readonly record struct BodyPartDisabledEvent(Entity<BodyPartComponent> Part);
|