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

Detailed Description

special triggered damage sender that returns its current movement direction as its damage direction
useful for moving weapons that change direction and should apply damage in their current movement direction

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

Inheritance diagram for AdventureCore.MovingDamageSender:
AdventureCore.TriggerDamageSender AdventureCore.TriggerArea< TriggerDamageSender, TriggerDamageReceiver > AdventureCore.IDamageSender AdventureCore.ICharacterAssociator

Protected Member Functions

override void Update ()
 
override void assignDamageVector (DamageEvent e)
 
- Protected Member Functions inherited from AdventureCore.TriggerDamageSender
override void OnDisable ()
 
override void onItemAdded (TriggerDamageReceiver item)
 
override void onItemRemoved (TriggerDamageReceiver item)
 
- Protected Member Functions inherited from AdventureCore.TriggerArea< TriggerDamageSender, TriggerDamageReceiver >
virtual void OnEnable ()
 
virtual void OnTriggerEnter2D (Collider2D collision)
 
virtual void OnTriggerExit2D (Collider2D collision)
 
virtual void OnTriggerEnter (Collider other)
 
virtual void OnTriggerExit (Collider other)
 
void clear ()
 
virtual void tryAdd (Component component)
 
virtual void tryRemove (Component component)
 
virtual void onItemAdded (TItem item)
 
virtual void onItemRemoved (TItem item)
 

Additional Inherited Members

- Public Types inherited from AdventureCore.TriggerDamageSender
enum  DirectionMode {
  Forward , Up , Right , SenderToReceiver ,
  SenderToReceiverXZ , None
}
 
- Public Member Functions inherited from AdventureCore.TriggerDamageSender
virtual void Activate ()
 
virtual void Activate (float modifier)
 
virtual void Deactivate ()
 
void Send ()
 
virtual bool PreDamage (IDamageReceiver receiver)
 
virtual void OnDamage (DamageEvent e)
 
virtual void PostDamage (IDamageReceiver receiver, List< DamageEvent > events)
 
- Public Member Functions inherited from AdventureCore.TriggerArea< TriggerDamageSender, TriggerDamageReceiver >
virtual void AddItem (TItem item)
 
virtual void RemoveItem (TItem item)
 
- Public Attributes inherited from AdventureCore.TriggerDamageSender
CharacterBase Character
 
DamageParameter[] Damages
 
DirectionMode Direction
 
float Magnitude = 0f
 
bool SendStart = true
 
bool SendTick = false
 
bool SendEnd = false
 
float TickRate
 
bool SendOnce
 
UnityEvent Damaged
 
- Public Attributes inherited from AdventureCore.TriggerArea< TriggerDamageSender, TriggerDamageReceiver >
UnityEvent< TItem > ItemAdded
 
UnityEvent< TItem > ItemRemoved
 
UnityEvent ItemsChanged
 
- Protected Attributes inherited from AdventureCore.TriggerDamageSender
Dictionary< TriggerDamageReceiver, DamageInstance_instances = new Dictionary<TriggerDamageReceiver, DamageInstance>()
 
List< TriggerDamageReceiver_sent = new List<TriggerDamageReceiver>()
 
float _modifier = 1f
 
- Protected Attributes inherited from AdventureCore.TriggerArea< TriggerDamageSender, TriggerDamageReceiver >
Dictionary< TItem, int > _items
 
- Properties inherited from AdventureCore.TriggerDamageSender
CharacterBase AssociatedCharacter [get]
 character that owns or is otherwise associted with the object
 
- Properties inherited from AdventureCore.TriggerArea< TriggerDamageSender, TriggerDamageReceiver >
IEnumerable< TItem > Items [get]
 
- Properties inherited from AdventureCore.IDamageSender
- Properties inherited from AdventureCore.ICharacterAssociator

Member Function Documentation

◆ assignDamageVector()

override void AdventureCore.MovingDamageSender.assignDamageVector ( DamageEvent e)
inlineprotectedvirtual

Reimplemented from AdventureCore.TriggerDamageSender.

◆ Update()

override void AdventureCore.MovingDamageSender.Update ( )
inlineprotectedvirtual

Reimplemented from AdventureCore.TriggerDamageSender.