Show / Hide Table of Contents

Class DamageModifyEvent

Raised on an entity when damage is about to be dealt, in case anything else needs to modify it other than the base damageable component.

For example, armor.

Inheritance
System.Object
DamageModifyEvent
Implements
IInventoryRelayEvent
Namespace: Content.Shared.Damage
Assembly: Content.Shared.dll
Syntax
public sealed class DamageModifyEvent : EntityEventArgs, IInventoryRelayEvent

Constructors

| Improve this Doc View Source

DamageModifyEvent(DamageSpecifier, Nullable<EntityUid>)

Declaration
public DamageModifyEvent(DamageSpecifier damage, EntityUid? origin = null)
Parameters
Type Name Description
DamageSpecifier damage
System.Nullable<EntityUid> origin

Fields

| Improve this Doc View Source

Damage

Declaration
public DamageSpecifier Damage
Field Value
Type Description
DamageSpecifier
| Improve this Doc View Source

Origin

Declaration
public EntityUid? Origin
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

OriginalDamage

Declaration
public readonly DamageSpecifier OriginalDamage
Field Value
Type Description
DamageSpecifier

Properties

| Improve this Doc View Source

TargetSlots

Declaration
public SlotFlags TargetSlots { get; }
Property Value
Type Description
SlotFlags

Implements

IInventoryRelayEvent
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾