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

Detailed Description

effect that repeatedly damages the character while active

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

Inheritance diagram for AdventureCore.DamageEffect:
AdventureCore.GenericEffect AdventureCore.IDamageSender AdventureCore.EffectBase AdventureCore.ICharacterAssociator AdventureCore.ICharacterAssociator

Public Member Functions

bool PreDamage (IDamageReceiver receiver)
 
void OnDamage (DamageEvent e)
 
void PostDamage (IDamageReceiver receiver, List< DamageEvent > events)
 
override string GetValue ()
 
override void SetValue (string data)
 
- Public Member Functions inherited from AdventureCore.EffectBase
void Terminate ()
 
virtual void Add (EffectBase prefab)
 
override string ToString ()
 

Public Attributes

float Interval
 
DamageParameter[] Damages
 
- Public Attributes inherited from AdventureCore.GenericEffect
CharacterInstructionBase[] Instructions
 
- Public Attributes inherited from AdventureCore.EffectBase
EffectType Type
 

Additional Inherited Members

- Protected Member Functions inherited from AdventureCore.GenericEffect
virtual void Start ()
 
virtual void OnDestroy ()
 
- Properties inherited from AdventureCore.EffectBase
EffectPool Pool [get, set]
 
bool IsExternal [get, set]
 
CharacterBase AssociatedCharacter [get]
 character that owns or is otherwise associted with the object
 
- Properties inherited from AdventureCore.ICharacterAssociator
- Properties inherited from AdventureCore.IDamageSender

Member Function Documentation

◆ GetValue()

override string AdventureCore.DamageEffect.GetValue ( )
virtual

Reimplemented from AdventureCore.EffectBase.

◆ OnDamage()

void AdventureCore.DamageEffect.OnDamage ( DamageEvent e)
inline

◆ PostDamage()

void AdventureCore.DamageEffect.PostDamage ( IDamageReceiver receiver,
List< DamageEvent > events )
inline

◆ PreDamage()

bool AdventureCore.DamageEffect.PreDamage ( IDamageReceiver receiver)

◆ SetValue()

override void AdventureCore.DamageEffect.SetValue ( string data)
virtual

Reimplemented from AdventureCore.EffectBase.