Loading...
Searching...
No Matches
AdventureCore.ResourceDamage Class Reference

Detailed Description

damage that reduces some resource value(health), probably the most common kind of damage

https://adventure.softleitner.com/manual/damage

Inheritance diagram for AdventureCore.ResourceDamage:
AdventureCore.DamageKind

Public Member Functions

override void OnDamage (DamageEvent e)
 called during damage handling after the sender and receiver had a chance to react in their PreDamage and OnDamage methods(DamageEvent)
 

Public Attributes

ResourceType ResourceType
 
bool Add
 
bool ShowBar
 

Member Function Documentation

◆ OnDamage()

override void AdventureCore.ResourceDamage.OnDamage ( DamageEvent e)
inlinevirtual

called during damage handling after the sender and receiver had a chance to react in their PreDamage and OnDamage methods(DamageEvent)

Parameters
e

Reimplemented from AdventureCore.DamageKind.