Class TargetEntityProcessor<TEvent>
- Namespace
- RisingV.Core.Processors
- Assembly
- RisingV.Core.dll
Base class for processors that target a specific entity type.
public abstract class TargetEntityProcessor<TEvent> : DefaultProcessor<TEvent>, IProcessor<TEvent, bool?>, IProcessor, IManageable<ProcessorManager>, IManageable
Type Parameters
TEvent
- Inheritance
-
ProcessorBase<TEvent, bool?>DefaultProcessor<TEvent>TargetEntityProcessor<TEvent>
- Implements
-
IProcessor<TEvent, bool?>
- Derived
- Inherited Members
- Extension Methods
Properties
Log
protected abstract Logger Log { get; }
Property Value
Methods
GetTargetEntity(TEvent)
protected abstract Entity GetTargetEntity(TEvent @event)
Parameters
event
TEvent
Returns
- Entity
OnAnyTarget(Entity, TEvent, bool)
Called for any target entity when an event occurs.
protected abstract void OnAnyTarget(Entity targetEntity, TEvent @event, bool isPost)
Parameters
targetEntity
EntityThe target entity.
event
TEventThe event containing the source entity.
isPost
boolIndicates if the event is post-processing.
OnBossTarget(Entity, TEvent, bool)
Called for boss target entities when an event occurs.
protected abstract bool OnBossTarget(Entity targetEntity, TEvent @event, bool isPost)
Parameters
targetEntity
EntityThe target entity.
event
TEventThe event containing the source entity.
isPost
boolIndicates if the event is post-processing.
Returns
- bool
True if the event was handled, otherwise false.
OnGatherableTarget(Entity, TEvent, bool)
Called for gatherable target entities when an event occurs.
protected abstract bool OnGatherableTarget(Entity targetEntity, TEvent @event, bool isPost)
Parameters
targetEntity
EntityThe target entity.
event
TEventThe event containing the source entity.
isPost
boolIndicates if the event is post-processing.
Returns
- bool
True if the event was handled, otherwise false.
OnMinionTarget(Entity, TEvent, bool)
Called for minion target entities when an event occurs.
protected abstract bool OnMinionTarget(Entity targetEntity, TEvent @event, bool isPost)
Parameters
targetEntity
EntityThe target entity.
event
TEventThe event containing the source entity.
isPost
boolIndicates if the event is post-processing.
Returns
- bool
True if the event was handled, otherwise false.
OnPlayerTarget(Entity, TEvent, bool)
Called for player target entities when an event occurs.
protected abstract bool OnPlayerTarget(Entity targetEntity, TEvent @event, bool isPost)
Parameters
targetEntity
EntityThe target entity.
event
TEventThe event containing the source entity.
isPost
boolIndicates if the event is post-processing.
Returns
- bool
True if the event was handled, otherwise false.
OnProcess(TEvent, out bool?, bool)
protected virtual ProcessToken OnProcess(TEvent @event, out bool? result, bool isPost = false)
Parameters
Returns
OnUnitTarget(Entity, TEvent, bool)
Called for unit target entities when an event occurs.
protected abstract bool OnUnitTarget(Entity targetEntity, TEvent @event, bool isPost)
Parameters
targetEntity
EntityThe target entity.
event
TEventThe event containing the source entity.
isPost
boolIndicates if the event is post-processing.
Returns
- bool
True if the event was handled, otherwise false.
PostProcess(TEvent, out bool?)
Processes the given event and returns a token indicating the processing result.
public override ProcessToken PostProcess(TEvent @event, out bool? result)
Parameters
event
TEventThe event to process.
result
bool?An output parameter that will hold the result of the processing.
Returns
- ProcessToken
A token indicating the processing result.
PreProcess(TEvent, out bool?)
Pre-process the event before it is processed.
public override ProcessToken PreProcess(TEvent @event, out bool? result)
Parameters
event
TEventThe event to process.
result
bool?The result of the processing.
Returns
- ProcessToken
A token indicating whether to continue processing or not.