#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(IBodyPart part, string slot)
{
Part = part;
Slot = slot;
}
///
/// The part that was added.
///
public IBodyPart Part { get; }
///
/// The slot that was added to.
///
public string Slot { get; }
}
}