Table of Contents

Class SourceToTargetEntityProcessor<TEvent>

Namespace
RisingV.Core.Processors
Assembly
RisingV.Core.dll

Base class for entity processors that operate on a source entity and a target entity.

public abstract class SourceToTargetEntityProcessor<TEvent> : TargetEntityProcessor<TEvent>, IProcessor<TEvent, bool?>, IProcessor, IManageable<ProcessorManager>, IManageable

Type Parameters

TEvent
Inheritance
SourceToTargetEntityProcessor<TEvent>
Implements
IProcessor<TEvent, bool?>
Derived
Inherited Members
Extension Methods

Methods

GetAndVerifySourceEntity(TEvent, Entity)

Verifies that the source entity exists in the global entity manager.

protected virtual Entity GetAndVerifySourceEntity(TEvent @event, Entity targetEntity)

Parameters

event TEvent

The event containing the source entity.

targetEntity Entity

The target entity.

Returns

Entity

The source entity if it exists, otherwise Entity.Null.

GetSourceEntity(TEvent)

Gets the source entity from the event.

protected abstract Entity GetSourceEntity(TEvent @event)

Parameters

event TEvent

The event containing the source entity.

Returns

Entity

The source entity.

OnAnyTarget(Entity, Entity, TEvent, bool)

Called for any target entity, regardless of type.

protected abstract void OnAnyTarget(Entity sourceEntity, Entity targetEntity, TEvent @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 TEvent

The event being processed.

isPost bool

Indicates whether this is a post-processing event.

OnAnyTarget(Entity, TEvent, bool)

Called for any target entity when an event occurs.

protected override void OnAnyTarget(Entity targetEntity, TEvent @event, bool isPost)

Parameters

targetEntity Entity

The target entity.

event TEvent

The event containing the source entity.

isPost bool

Indicates if the event is post-processing.

OnBossTarget(Entity, Entity, TEvent, bool)

Called for boss target entities.

protected abstract bool OnBossTarget(Entity sourceEntity, Entity targetEntity, TEvent @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 TEvent

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.

OnBossTarget(Entity, TEvent, bool)

Called for boss target entities when an event occurs.

protected override bool OnBossTarget(Entity targetEntity, TEvent @event, bool isPost)

Parameters

targetEntity Entity

The target entity.

event TEvent

The event containing the source entity.

isPost bool

Indicates if the event is post-processing.

Returns

bool

True if the event was handled, otherwise false.

OnGatherableTarget(Entity, Entity, TEvent, bool)

Called for gatherable target entities.

protected abstract bool OnGatherableTarget(Entity sourceEntity, Entity targetEntity, TEvent @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 TEvent

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.

OnGatherableTarget(Entity, TEvent, bool)

Called for gatherable target entities when an event occurs.

protected override bool OnGatherableTarget(Entity targetEntity, TEvent @event, bool isPost)

Parameters

targetEntity Entity

The target entity.

event TEvent

The event containing the source entity.

isPost bool

Indicates if the event is post-processing.

Returns

bool

True if the event was handled, otherwise false.

OnMinionTarget(Entity, Entity, TEvent, bool)

Called for minion target entities.

protected abstract bool OnMinionTarget(Entity sourceEntity, Entity targetEntity, TEvent @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 TEvent

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, TEvent, bool)

Called for minion target entities when an event occurs.

protected override bool OnMinionTarget(Entity targetEntity, TEvent @event, bool isPost)

Parameters

targetEntity Entity

The target entity.

event TEvent

The event containing the source entity.

isPost bool

Indicates if the event is post-processing.

Returns

bool

True if the event was handled, otherwise false.

OnPlayerTarget(Entity, Entity, TEvent, bool)

Called for player target entities.

protected abstract bool OnPlayerTarget(Entity sourceEntity, Entity targetEntity, TEvent @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 TEvent

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.

OnPlayerTarget(Entity, TEvent, bool)

Called for player target entities when an event occurs.

protected override bool OnPlayerTarget(Entity targetEntity, TEvent @event, bool isPost)

Parameters

targetEntity Entity

The target entity.

event TEvent

The event containing the source entity.

isPost bool

Indicates if the event is post-processing.

Returns

bool

True if the event was handled, otherwise false.

OnUnitTarget(Entity, Entity, TEvent, bool)

Called for unit target entities.

protected abstract bool OnUnitTarget(Entity sourceEntity, Entity targetEntity, TEvent @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 TEvent

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.

OnUnitTarget(Entity, TEvent, bool)

Called for unit target entities when an event occurs.

protected override bool OnUnitTarget(Entity targetEntity, TEvent @event, bool isPost)

Parameters

targetEntity Entity

The target entity.

event TEvent

The event containing the source entity.

isPost bool

Indicates if the event is post-processing.

Returns

bool

True if the event was handled, otherwise false.