2020-07-18 22:51:56 -07:00
|
|
|
|
using System;
|
2020-07-06 14:27:03 -07:00
|
|
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Map;
|
|
|
|
|
|
|
2020-07-18 22:51:56 -07:00
|
|
|
|
namespace Content.Shared.Interfaces.GameObjects.Components
|
2020-07-06 14:27:03 -07:00
|
|
|
|
{
|
|
|
|
|
|
/// <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; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|