using Content.Shared.Body.Components; 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); } public sealed class BodyPartAddedEventArgs : EventArgs { public BodyPartAddedEventArgs(string slot, BodyPartComponent part) { Slot = slot; Part = part; } /// /// The slot that was added to. /// public string Slot { get; } /// /// The part that was added. /// public BodyPartComponent Part { get; } } }