using Content.Shared.Body.Components; using Robust.Shared.Serialization; namespace Content.Shared.Body.Part { /// /// This interface gives components behavior when a body part /// is added to their owning entity. /// public interface IBodyPartAdded : IComponent { /// /// Called when a is added to the /// entity owning this component. /// /// Information about the part that was added. void BodyPartAdded(BodyPartAddedEventArgs args); } [Serializable, NetSerializable] public sealed class BodyPartAddedEventArgs : EventArgs { public BodyPartAddedEventArgs(string slot, SharedBodyPartComponent part) { Slot = slot; Part = part; } /// /// The slot that was added to. /// public string Slot { get; } /// /// The part that was added. /// public SharedBodyPartComponent Part { get; } } }