MechanismBodyEvents.cs 901 B

12345678910111213141516171819202122232425262728
  1. namespace Content.Shared.Body.Events;
  2. // All of these events are raised on a mechanism entity when added/removed to a body in different
  3. // ways.
  4. /// <summary>
  5. /// Raised on a mechanism when it is added to a body part.
  6. /// </summary>
  7. [ByRefEvent]
  8. public readonly record struct OrganAddedEvent(EntityUid Part);
  9. /// <summary>
  10. /// Raised on a mechanism when it is added to a body part within a body.
  11. /// </summary>
  12. [ByRefEvent]
  13. public readonly record struct OrganAddedToBodyEvent(EntityUid Body, EntityUid Part);
  14. /// <summary>
  15. /// Raised on a mechanism when it is removed from a body part.
  16. /// </summary>
  17. [ByRefEvent]
  18. public readonly record struct OrganRemovedEvent(EntityUid OldPart);
  19. /// <summary>
  20. /// Raised on a mechanism when it is removed from a body part within a body.
  21. /// </summary>
  22. [ByRefEvent]
  23. public readonly record struct OrganRemovedFromBodyEvent(EntityUid OldBody, EntityUid OldPart);