mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
Uses the following Cherry-Picks: https://github.com/space-wizards/space-station-14/pull/26994 https://github.com/space-wizards/space-station-14/pull/26518 https://github.com/space-wizards/space-station-14/pull/26279 https://github.com/space-wizards/space-station-14/pull/24946 https://github.com/space-wizards/space-station-14/pull/27188 Requires: https://github.com/Simple-Station/Einstein-Engines/pull/535 https://github.com/Simple-Station/Einstein-Engines/pull/534 --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: Jake Huxell <JakeHuxell@pm.me> Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: 0x6273 <0x40@keemail.me> Co-authored-by: DEATHB4DEFEAT <zachcaffee@outlook.com>
29 lines
901 B
C#
29 lines
901 B
C#
namespace Content.Shared.Body.Events;
|
|
|
|
// All of these events are raised on a mechanism entity when added/removed to a body in different
|
|
// ways.
|
|
|
|
/// <summary>
|
|
/// Raised on a mechanism when it is added to a body part.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct OrganAddedEvent(EntityUid Part);
|
|
|
|
/// <summary>
|
|
/// Raised on a mechanism when it is added to a body part within a body.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct OrganAddedToBodyEvent(EntityUid Body, EntityUid Part);
|
|
|
|
/// <summary>
|
|
/// Raised on a mechanism when it is removed from a body part.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct OrganRemovedEvent(EntityUid OldPart);
|
|
|
|
/// <summary>
|
|
/// Raised on a mechanism when it is removed from a body part within a body.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct OrganRemovedFromBodyEvent(EntityUid OldBody, EntityUid OldPart);
|