using Robust.Shared.GameObjects;
using Robust.Shared.Map;
namespace Content.Shared.Actions.Behaviors
{
///
/// Action which requires the user to select a target point, which
/// does not necessarily have an entity on it.
///
public interface ITargetPointAction : IActionBehavior
{
///
/// Invoked when the target point action should be performed.
/// Implementation should perform the server side logic of the action.
///
void DoTargetPointAction(TargetPointActionEventArgs args);
}
public class TargetPointActionEventArgs : ActionEventArgs
{
///
/// Local coordinates of the targeted position.
///
public readonly EntityCoordinates Target;
public TargetPointActionEventArgs(IEntity performer, EntityCoordinates target, ActionType actionType)
: base(performer, actionType)
{
Target = target;
}
}
}