SetRelayActionNode.kt

package io.github.lishangbu.avalon.game.battle.engine.core.dsl.action

import io.github.lishangbu.avalon.game.battle.engine.core.dsl.ActionNode
import io.github.lishangbu.avalon.game.battle.engine.core.type.ActionTypeId
import io.github.lishangbu.avalon.game.battle.engine.core.type.StandardActionTypeIds

/**
 * 直接把当前 relay 替换为指定字面量的动作。
 *
 * @property value 新的 relay 值,允许是 map/list/scalar/null 组成的递归字面量。
 */
data class SetRelayActionNode(
    val value: Any?,
) : ActionNode {
    override val type: ActionTypeId = StandardActionTypeIds.SET_RELAY
}