processPhase
abstract fun processPhase(snapshot: BattleRuntimeSnapshot, hookName: String, moveEffect: EffectDefinition, selfId: String, targetId: String, sourceId: String, relay: Any?, attributes: Map<String, Any?>): HookPhaseResult
处理一次完整的 hook phase。
Return
本次 hook phase 的处理结果。
Parameters
snapshot
当前 battle 快照。
hookName
当前要执行的 hook 名称。
moveEffect
当前正在结算的 effect 定义。
selfId
当前 hook 的 self 单位标识。
targetId
当前 hook 的目标单位标识。
sourceId
当前 hook 的来源单位标识。
relay
当前 hook 的输入 relay。
attributes
当前 hook 的附加属性。