Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com> Co-authored-by: ComicIronic <comicironic@gmail.com> Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
27 lines
681 B
C#
27 lines
681 B
C#
using System;
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Content.Server.Interfaces.GameObjects.Components.Interaction
|
|
{
|
|
/// <summary>
|
|
/// This interface gives components behavior when being used to "attack".
|
|
/// </summary>
|
|
public interface IAttack
|
|
{
|
|
void Attack(AttackEventArgs eventArgs);
|
|
}
|
|
|
|
public class AttackEventArgs : EventArgs
|
|
{
|
|
public AttackEventArgs(IEntity user, GridCoordinates clickLocation)
|
|
{
|
|
User = user;
|
|
ClickLocation = clickLocation;
|
|
}
|
|
|
|
public IEntity User { get; }
|
|
public GridCoordinates ClickLocation { get; }
|
|
}
|
|
}
|