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

Detailed Description

performs a sphere overlap and damages any IDamageReceiver on the colliders/rigidbodies it finds

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

Inheritance diagram for AdventureCore.SphereDamageSender:
AdventureCore.IDamageSender AdventureCore.ICharacterAssociator

Public Member Functions

virtual bool PreDamage (IDamageReceiver receiver)
 
virtual void OnDamage (DamageEvent e)
 
virtual void PostDamage (IDamageReceiver receiver, List< DamageEvent > events)
 

Public Attributes

float Radius
 
LayerMask LayerMask
 
CharacterBase Character
 
DamageParameter[] Damages
 
TriggerDamageSender.DirectionMode Direction
 
float Magnitude = 0f
 
bool SendStart = true
 
bool SendUpdate = false
 
UnityEvent Damaged
 

Protected Member Functions

virtual void assignDamageVector (DamageEvent e)
 

Properties

CharacterBase AssociatedCharacter [get]
 character that owns or is otherwise associted with the object
 
- Properties inherited from AdventureCore.IDamageSender
- Properties inherited from AdventureCore.ICharacterAssociator

Member Function Documentation

◆ OnDamage()

virtual void AdventureCore.SphereDamageSender.OnDamage ( DamageEvent e)
inlinevirtual

◆ PostDamage()

virtual void AdventureCore.SphereDamageSender.PostDamage ( IDamageReceiver receiver,
List< DamageEvent > events )
inlinevirtual

◆ PreDamage()

virtual bool AdventureCore.SphereDamageSender.PreDamage ( IDamageReceiver receiver)
inlinevirtual

Property Documentation

◆ AssociatedCharacter

CharacterBase AdventureCore.SphereDamageSender.AssociatedCharacter
get

character that owns or is otherwise associted with the object

Implements AdventureCore.ICharacterAssociator.