Show / Hide Table of Contents

Class AttackedEvent

Event raised on entities that have been attacked.

Inheritance
System.Object
AttackedEvent
Namespace: Content.Shared.Weapons.Melee.Events
Assembly: Content.Shared.dll
Syntax
public sealed class AttackedEvent : EntityEventArgs

Constructors

| Improve this Doc View Source

AttackedEvent(EntityUid, EntityUid, EntityCoordinates)

Declaration
public AttackedEvent(EntityUid used, EntityUid user, EntityCoordinates clickLocation)
Parameters
Type Name Description
EntityUid used
EntityUid user
Robust.Shared.Map.EntityCoordinates clickLocation

Fields

| Improve this Doc View Source

BonusDamage

Declaration
public DamageSpecifier BonusDamage
Field Value
Type Description
DamageSpecifier

Properties

| Improve this Doc View Source

ClickLocation

The original location that was clicked by the user.

Declaration
public EntityCoordinates ClickLocation { get; }
Property Value
Type Description
Robust.Shared.Map.EntityCoordinates
| Improve this Doc View Source

Used

Entity used to attack, for broadcast purposes.

Declaration
public EntityUid Used { get; }
Property Value
Type Description
EntityUid
| Improve this Doc View Source

User

Entity that triggered the attack.

Declaration
public EntityUid User { get; }
Property Value
Type Description
EntityUid
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾