27 lines
616 B
C#
27 lines
616 B
C#
|
|
using System;
|
|||
|
|
|
|||
|
|
namespace Content.Shared.GameObjects.Components.Body.Part
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// This interface gives components behavior when a body part
|
|||
|
|
/// is added to their owning entity.
|
|||
|
|
/// </summary>
|
|||
|
|
public interface IBodyPartAdded
|
|||
|
|
{
|
|||
|
|
void BodyPartAdded(BodyPartAddedEventArgs args);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class BodyPartAddedEventArgs : EventArgs
|
|||
|
|
{
|
|||
|
|
public BodyPartAddedEventArgs(IBodyPart part, string slot)
|
|||
|
|
{
|
|||
|
|
Part = part;
|
|||
|
|
Slot = slot;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public IBodyPart Part { get; }
|
|||
|
|
|
|||
|
|
public string Slot { get; }
|
|||
|
|
}
|
|||
|
|
}
|