Table of Contents

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
ProcessorBase<DeathEvent, bool?>
DefaultProcessor<DeathEvent>
DeathProcessor
Implements
IProcessor<DeathEvent, bool?>
Inherited Members
Extension Methods

Properties

Log

protected override Logger Log { get; }

Property Value

Logger

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 DeathEvent

The event to process.

isPost bool

Indicates 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 DeathEvent

The 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 Entity

The source entity that initiated the event.

targetEntity Entity

The target entity that the event is being processed for.

deathEvent DeathEvent
isPost bool

Indicates 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 Entity

The source entity that initiated the event.

targetEntity Entity

The target entity that the event is being processed for.

deathEvent DeathEvent
isPost bool

Indicates 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 Entity

The source entity that initiated the event.

targetEntity Entity

The target entity that the event is being processed for.

event DeathEvent

The event being processed.

isPost bool

Indicates 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 Entity

The source entity that initiated the event.

targetEntity Entity

The target entity that the event is being processed for.

deathEvent DeathEvent
isPost bool

Indicates 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 Entity

The source entity that initiated the event.

targetEntity Entity

The target entity that the event is being processed for.

deathEvent DeathEvent
isPost bool

Indicates 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 Entity

The source entity that initiated the event.

targetEntity Entity

The target entity that the event is being processed for.

deathEvent DeathEvent
isPost bool

Indicates whether this is a post-processing event.

Returns

bool

Returns true if the event was handled, otherwise false.