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

Detailed Description

base class for damage kinds, typically damages will reduce some resource value which is implemented in ResourceDamage
technically though damages can do pretty much anything to the sender and receiver by creating a new implementation of DamageKind and overriding OnDamage

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

Inheritance diagram for AdventureCore.DamageKind:
AdventureCore.GenericDamage AdventureCore.ResourceDamage

Public Member Functions

virtual 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)
 

Member Function Documentation

◆ OnDamage()

virtual void AdventureCore.DamageKind.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 in AdventureCore.ResourceDamage.