Interaction Entity System (#26)

* Interaction Entity System

* ye

* Update submodule

* Requires engine update to function, but doesn't use shitcode

* Fix conflicts

* Fix conflicts but for real

* Update submodule
This commit is contained in:
clusterfack
2018-02-05 13:57:26 -06:00
committed by Silver
parent 1f22f8ab6a
commit 1452502fbf
12 changed files with 172 additions and 181 deletions

View File

@@ -1,48 +0,0 @@
using SS14.Shared.Interfaces.GameObjects;
using System;
namespace Content.Server.Interfaces.GameObjects
{
public interface IInteractableComponent : IComponent
{
/// <summary>
/// Invoked when an entity is clicked with an empty hand.
/// </summary>
event EventHandler<AttackHandEventArgs> OnAttackHand;
/// <summary>
/// Invoked when an entity is clicked with an item.
/// </summary>
event EventHandler<AttackByEventArgs> OnAttackBy;
}
public class AttackByEventArgs : EventArgs
{
public readonly IEntity Target;
public readonly IEntity User;
public readonly IItemComponent Item;
public readonly string HandIndex;
public AttackByEventArgs(IEntity target, IEntity user, IItemComponent item, string handIndex)
{
Target = target;
User = user;
Item = item;
HandIndex = handIndex;
}
}
public class AttackHandEventArgs : EventArgs
{
public readonly IEntity Target;
public readonly IEntity User;
public readonly string HandIndex;
public AttackHandEventArgs(IEntity target, IEntity user, string handIndex)
{
Target = target;
User = user;
HandIndex = handIndex;
}
}
}