using Content.Shared.Body.Components; using Robust.Shared.GameObjects; namespace Content.Shared.Body.Events { // All of these events are raised on a mechanism entity when added/removed to a body in different // ways. /// /// Raised on a mechanism when it is added to a body. /// public sealed class AddedToBodyEvent : EntityEventArgs { public SharedBodyComponent Body; public AddedToBodyEvent(SharedBodyComponent body) { Body = body; } } /// /// Raised on a mechanism when it is added to a body part. /// public sealed class AddedToPartEvent : EntityEventArgs { public SharedBodyPartComponent Part; public AddedToPartEvent(SharedBodyPartComponent part) { Part = part; } } /// /// Raised on a mechanism when it is added to a body part within a body. /// public sealed class AddedToPartInBodyEvent : EntityEventArgs { public SharedBodyComponent Body; public SharedBodyPartComponent Part; public AddedToPartInBodyEvent(SharedBodyComponent body, SharedBodyPartComponent part) { Body = body; Part = part; } } /// /// Raised on a mechanism when it is removed from a body. /// public sealed class RemovedFromBodyEvent : EntityEventArgs { public SharedBodyComponent Old; public RemovedFromBodyEvent(SharedBodyComponent old) { Old = old; } } /// /// Raised on a mechanism when it is removed from a body part. /// public sealed class RemovedFromPartEvent : EntityEventArgs { public SharedBodyPartComponent Old; public RemovedFromPartEvent(SharedBodyPartComponent old) { Old = old; } } /// /// Raised on a mechanism when it is removed from a body part within a body. /// public sealed class RemovedFromPartInBodyEvent : EntityEventArgs { public SharedBodyComponent OldBody; public SharedBodyPartComponent OldPart; public RemovedFromPartInBodyEvent(SharedBodyComponent oldBody, SharedBodyPartComponent oldPart) { OldBody = oldBody; OldPart = oldPart; } } }