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 class TargetEntityActionEventArgs : ActionEventArgs
{
///
/// Entity being targeted
///
public readonly IEntity Target;
public TargetEntityActionEventArgs(IEntity performer, ActionType actionType, IEntity target) :
base(performer, actionType)
{
Target = target;
}
}
}