DefaultBattleFlowPhaseProcessor
class DefaultBattleFlowPhaseProcessor(effectRepository: EffectDefinitionRepository, hookRuleProcessor: HookRuleProcessor, mutationApplier: MutationApplier, mutationInterceptorChain: BattleMutationInterceptorChain) : BattleFlowPhaseProcessor
默认 battle hook phase 处理器。
Constructors
Link copied to clipboard
constructor(effectRepository: EffectDefinitionRepository, hookRuleProcessor: HookRuleProcessor, mutationApplier: MutationApplier, mutationInterceptorChain: BattleMutationInterceptorChain)
Functions
Link copied to clipboard
open override fun processAttachedEffects(snapshot: BattleRuntimeSnapshot, unitId: String, hookName: String, targetId: String?, sourceId: String?, relay: Any?, attributes: Map<String, Any?>): HookPhaseResult
处理某个单位上挂载 effect 的指定 hook。
Link copied to clipboard
open override fun processPhase(snapshot: BattleRuntimeSnapshot, hookName: String, moveEffect: EffectDefinition, selfId: String, targetId: String, sourceId: String, relay: Any?, attributes: Map<String, Any?>): HookPhaseResult
处理一次完整的 hook phase。