TopDown Engine v4.5
Loading...
Searching...
No Matches
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, List< TypedDamage > typedDamages)
 Initializes a new instance of the MoreMountains.TopDownEngine.MMDamageTakenEvent struct.

Static Public Member Functions

static void Trigger (Health affectedHealth, GameObject instigator, float currentHealth, float damageCaused, float previousHealth, List< TypedDamage > typedDamages)

Public Attributes

Health AffectedHealth
GameObject Instigator
float CurrentHealth
float DamageCaused
float PreviousHealth
List< TypedDamageTypedDamages

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,
List< TypedDamage > typedDamages )

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

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

Member Function Documentation

◆ Trigger()

void MoreMountains.TopDownEngine.MMDamageTakenEvent.Trigger ( Health affectedHealth,
GameObject instigator,
float currentHealth,
float damageCaused,
float previousHealth,
List< TypedDamage > typedDamages )
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

◆ TypedDamages

List<TypedDamage> MoreMountains.TopDownEngine.MMDamageTakenEvent.TypedDamages

The documentation for this struct was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/Core/CharacterEvents.cs