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
-
ProcessorBase<TEvent, bool?>DefaultProcessor<TEvent>TargetEntityProcessor<TEvent>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
eventTEventThe event containing the source entity.
targetEntityEntityThe 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
eventTEventThe 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
sourceEntityEntityThe source entity that initiated the event.
targetEntityEntityThe target entity that the event is being processed for.
eventTEventThe event being processed.
isPostboolIndicates 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
targetEntityEntityThe target entity.
eventTEventThe event containing the source entity.
isPostboolIndicates 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
sourceEntityEntityThe source entity that initiated the event.
targetEntityEntityThe target entity that the event is being processed for.
eventTEventThe event being processed.
isPostboolIndicates 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
targetEntityEntityThe target entity.
eventTEventThe event containing the source entity.
isPostboolIndicates 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
sourceEntityEntityThe source entity that initiated the event.
targetEntityEntityThe target entity that the event is being processed for.
eventTEventThe event being processed.
isPostboolIndicates 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
targetEntityEntityThe target entity.
eventTEventThe event containing the source entity.
isPostboolIndicates 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
sourceEntityEntityThe source entity that initiated the event.
targetEntityEntityThe target entity that the event is being processed for.
eventTEventThe event being processed.
isPostboolIndicates 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
targetEntityEntityThe target entity.
eventTEventThe event containing the source entity.
isPostboolIndicates 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
sourceEntityEntityThe source entity that initiated the event.
targetEntityEntityThe target entity that the event is being processed for.
eventTEventThe event being processed.
isPostboolIndicates 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
targetEntityEntityThe target entity.
eventTEventThe event containing the source entity.
isPostboolIndicates 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
sourceEntityEntityThe source entity that initiated the event.
targetEntityEntityThe target entity that the event is being processed for.
eventTEventThe event being processed.
isPostboolIndicates 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
targetEntityEntityThe target entity.
eventTEventThe event containing the source entity.
isPostboolIndicates if the event is post-processing.
Returns
- bool
True if the event was handled, otherwise false.