#nullable enable
using System;
using Robust.Shared.GameObjects;
namespace Content.Shared.GameObjects.Components.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 class BodyPartAddedEventArgs : EventArgs
{
public BodyPartAddedEventArgs(string slot, IBodyPart part)
{
Slot = slot;
Part = part;
}
///
/// The slot that was added to.
///
public string Slot { get; }
///
/// The part that was added.
///
public IBodyPart Part { get; }
}
}