Table of Contents

Class DamageEventData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA event data for damage-related triggers. Carries the damage amount and damage attribute type. The damaged character is exposed on TargetCharacter.

public class DamageEventData : EventData
Inheritance
DamageEventData
Inherited Members

Constructors

DamageEventData(ICharacter, ICharacter, int, DamageAttributeTemplate)

Creates a new DamageEventData.

public DamageEventData(ICharacter initiator, ICharacter target, int amount, DamageAttributeTemplate damageAttribute)

Parameters

initiator ICharacter

The character whose triggers are being invoked.

target ICharacter

The other character involved in the damage interaction.

amount int

The damage amount after modifiers.

damageAttribute DamageAttributeTemplate

The damage attribute type.

Properties

Amount

The amount of damage dealt after modifiers.

public int Amount { get; }

Property Value

int

DamageAttribute

The damage attribute type (e.g. physical, fire) used in this damage event.

public DamageAttributeTemplate DamageAttribute { get; }

Property Value

DamageAttributeTemplate