Class DeathProcessor
- Namespace
- RisingV.Core.Processors
- Assembly
- RisingV.Core.DeathEngine.dll
Processes and route death events based on the types of entity involved in the death.
public class DeathProcessor : SourceToTargetEntityProcessor<DeathEvent>, IProcessor<DeathEvent, bool?>, IProcessor, IManageable<ProcessorManager>, IManageable
- Inheritance
-
DefaultProcessor<DeathEvent>TargetEntityProcessor<DeathEvent>SourceToTargetEntityProcessor<DeathEvent>DeathProcessor
- Implements
- Inherited Members
- Extension Methods
Properties
Log
protected override Logger Log { get; }
Property Value
Methods
CanProcess(DeathEvent, bool)
Determines whether the processor can handle the given event and whether it is a post-processing event.
public override bool CanProcess(DeathEvent @event, bool isPost)
Parameters
event
DeathEventThe event to process.
isPost
boolIndicates whether the event is a post-processing event.
Returns
- bool
true if the processor can handle the event; otherwise, false.
GetSourceEntity(DeathEvent)
Gets the source entity from the event.
protected override Entity GetSourceEntity(DeathEvent @event)
Parameters
event
DeathEventThe event containing the source entity.
Returns
- Entity
The source entity.
GetTargetEntity(DeathEvent)
protected override Entity GetTargetEntity(DeathEvent @event)
Parameters
event
DeathEvent
Returns
- Entity
OnAnyTarget(Entity, Entity, DeathEvent, bool)
Called for any target entity, regardless of type.
protected override void OnAnyTarget(Entity sourceEntity, Entity targetEntity, DeathEvent deathEvent, bool isPost)
Parameters
sourceEntity
EntityThe source entity that initiated the event.
targetEntity
EntityThe target entity that the event is being processed for.
deathEvent
DeathEventisPost
boolIndicates whether this is a post-processing event.
OnBossTarget(Entity, Entity, DeathEvent, bool)
Called for boss target entities.
protected override bool OnBossTarget(Entity sourceEntity, Entity targetEntity, DeathEvent deathEvent, bool isPost)
Parameters
sourceEntity
EntityThe source entity that initiated the event.
targetEntity
EntityThe target entity that the event is being processed for.
deathEvent
DeathEventisPost
boolIndicates whether this is a post-processing event.
Returns
- bool
Returns true if the event was handled, otherwise false.
OnGatherableTarget(Entity, Entity, DeathEvent, bool)
Called for gatherable target entities.
protected override bool OnGatherableTarget(Entity sourceEntity, Entity targetEntity, DeathEvent @event, bool isPost)
Parameters
sourceEntity
EntityThe source entity that initiated the event.
targetEntity
EntityThe target entity that the event is being processed for.
event
DeathEventThe event being processed.
isPost
boolIndicates whether this is a post-processing event.
Returns
- bool
Returns true if the event was handled, otherwise false.
OnMinionTarget(Entity, Entity, DeathEvent, bool)
Called for minion target entities.
protected override bool OnMinionTarget(Entity sourceEntity, Entity targetEntity, DeathEvent deathEvent, bool isPost)
Parameters
sourceEntity
EntityThe source entity that initiated the event.
targetEntity
EntityThe target entity that the event is being processed for.
deathEvent
DeathEventisPost
boolIndicates whether this is a post-processing event.
Returns
- bool
Returns true if the event was handled, otherwise false.
OnPlayerTarget(Entity, Entity, DeathEvent, bool)
Called for player target entities.
protected override bool OnPlayerTarget(Entity sourceEntity, Entity targetEntity, DeathEvent deathEvent, bool isPost)
Parameters
sourceEntity
EntityThe source entity that initiated the event.
targetEntity
EntityThe target entity that the event is being processed for.
deathEvent
DeathEventisPost
boolIndicates whether this is a post-processing event.
Returns
- bool
Returns true if the event was handled, otherwise false.
OnUnitTarget(Entity, Entity, DeathEvent, bool)
Called for unit target entities.
protected override bool OnUnitTarget(Entity sourceEntity, Entity targetEntity, DeathEvent deathEvent, bool isPost)
Parameters
sourceEntity
EntityThe source entity that initiated the event.
targetEntity
EntityThe target entity that the event is being processed for.
deathEvent
DeathEventisPost
boolIndicates whether this is a post-processing event.
Returns
- bool
Returns true if the event was handled, otherwise false.