BattleMutationInterceptionContext

data class BattleMutationInterceptionContext(val snapshot: BattleRuntimeSnapshot, val selfId: String?, val targetId: String?, val sourceId: String?, val mutation: BattleMutation)

单个 mutation 在拦截链中的共享上下文。

Constructors

Link copied to clipboard
constructor(snapshot: BattleRuntimeSnapshot, selfId: String?, targetId: String?, sourceId: String?, mutation: BattleMutation)

Properties

Link copied to clipboard

当前正在判断的 mutation。

Link copied to clipboard

当前 hook 的 self 单位标识。

Link copied to clipboard

当前拦截阶段持有的 battle 快照。

Link copied to clipboard

当前 hook 的来源单位标识。

Link copied to clipboard

当前 hook 的目标单位标识。