@@ -1,3 +1,5 @@
|
||||
using Content.Shared.Weapons.Melee;
|
||||
|
||||
namespace Content.Shared.Interaction.Events
|
||||
{
|
||||
/// <summary>
|
||||
@@ -12,10 +14,19 @@ namespace Content.Shared.Interaction.Events
|
||||
public EntityUid Uid { get; }
|
||||
public EntityUid? Target { get; }
|
||||
|
||||
public AttackAttemptEvent(EntityUid uid, EntityUid? target = null)
|
||||
public Entity<MeleeWeaponComponent>? Weapon { get; }
|
||||
|
||||
/// <summary>
|
||||
/// If this attempt is a disarm as opposed to an actual attack, for things that care about the difference.
|
||||
/// </summary>
|
||||
public bool Disarm { get; }
|
||||
|
||||
public AttackAttemptEvent(EntityUid uid, EntityUid? target = null, Entity<MeleeWeaponComponent>? weapon = null, bool disarm = false)
|
||||
{
|
||||
Uid = uid;
|
||||
Target = target;
|
||||
Weapon = weapon;
|
||||
Disarm = disarm;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user