TopDown Engine  v3.6
MoreMountains.TopDownEngine.MMDamageTakenEvent Struct Reference

An event fired when something takes damage More...

Public Member Functions

 MMDamageTakenEvent (Health affectedHealth, GameObject instigator, float currentHealth, float damageCaused, float previousHealth)
 Initializes a new instance of the MoreMountains.TopDownEngine.MMDamageTakenEvent struct. More...
 

Static Public Member Functions

static void Trigger (Health affectedHealth, GameObject instigator, float currentHealth, float damageCaused, float previousHealth)
 

Public Attributes

Health AffectedHealth
 
GameObject Instigator
 
float CurrentHealth
 
float DamageCaused
 
float PreviousHealth
 

Static Public Attributes

static MMDamageTakenEvent e
 

Detailed Description

An event fired when something takes damage

Constructor & Destructor Documentation

◆ MMDamageTakenEvent()

MoreMountains.TopDownEngine.MMDamageTakenEvent.MMDamageTakenEvent ( Health  affectedHealth,
GameObject  instigator,
float  currentHealth,
float  damageCaused,
float  previousHealth 
)

Initializes a new instance of the MoreMountains.TopDownEngine.MMDamageTakenEvent struct.

Parameters
affectedHealthAffected Health.
instigatorInstigator.
currentHealthCurrent health.
damageCausedDamage caused.
previousHealthPrevious health.

Member Function Documentation

◆ Trigger()

static void MoreMountains.TopDownEngine.MMDamageTakenEvent.Trigger ( Health  affectedHealth,
GameObject  instigator,
float  currentHealth,
float  damageCaused,
float  previousHealth 
)
static

Member Data Documentation

◆ AffectedHealth

Health MoreMountains.TopDownEngine.MMDamageTakenEvent.AffectedHealth

◆ CurrentHealth

float MoreMountains.TopDownEngine.MMDamageTakenEvent.CurrentHealth

◆ DamageCaused

float MoreMountains.TopDownEngine.MMDamageTakenEvent.DamageCaused

◆ e

MMDamageTakenEvent MoreMountains.TopDownEngine.MMDamageTakenEvent.e
static

◆ Instigator

GameObject MoreMountains.TopDownEngine.MMDamageTakenEvent.Instigator

◆ PreviousHealth

float MoreMountains.TopDownEngine.MMDamageTakenEvent.PreviousHealth

The documentation for this struct was generated from the following file: