using Robust.Shared.GameObjects;
namespace Content.Shared.Actions.Behaviors
{
///
/// Action which is used on a targeted entity.
///
public interface ITargetEntityAction : IActionBehavior
{
///
/// Invoked when the target entity action should be performed.
/// Implementation should perform the server side logic of the action.
///
void DoTargetEntityAction(TargetEntityActionEventArgs args);
}
public sealed class TargetEntityActionEventArgs : ActionEventArgs
{
///
/// Entity being targeted
///
public readonly EntityUid Target;
public TargetEntityActionEventArgs(EntityUid performer, ActionType actionType, EntityUid target) :
base(performer, actionType)
{
Target = target;
}
}
}