#nullable enable
using System;
namespace Content.Shared.GameObjects.Components.Body.Part
{
///
/// This interface gives components behavior when a body part
/// is removed from their owning entity.
///
public interface IBodyPartRemoved
{
///
/// Called when a is removed from the
/// entity owning this component.
///
/// Information about the part that was removed.
void BodyPartRemoved(BodyPartRemovedEventArgs args);
}
public class BodyPartRemovedEventArgs : EventArgs
{
public BodyPartRemovedEventArgs(IBodyPart part, string slot)
{
Part = part;
Slot = slot;
}
///
/// The part that was removed.
///
public IBodyPart Part { get; }
///
/// The slot that was removed from.
///
public string Slot { get; }
}
}