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

Detailed Description

event args like class that gets passed through all the participants when damage occurs
-PreDamage ist sent to sender and receiver, they can cancel damage at this stage by returning false
-OnDamage is sent to sender, receiver and the DamageKind for every damage parameter on the sender
-PostDamage is send to sender and receiver

Static Public Member Functions

static void Send (IDamageSender sender, IDamageReceiver receiver)
 main method for creating damage events
 

Properties

IDamageSender Sender [get, set]
 
IDamageReceiver Receiver [get, set]
 
DamageKind Kind [get, set]
 
Object Tag [get, set]
 
float Value [get, set]
 
Vector3 Vector [get, set]
 

Member Function Documentation

◆ Send()

static void AdventureCore.DamageEvent.Send ( IDamageSender sender,
IDamageReceiver receiver )
inlinestatic

main method for creating damage events

Parameters
sender
receiver