Commit d27fb2f1 authored by Chunchi Che's avatar Chunchi Che

fix small

parent 2bab3140
Pipeline #27903 failed with stages
in 7 minutes and 36 seconds
import { PredictReq } from "@/api";
import { PredictReq, ygopro } from "@/api";
import { cardStore, matStore, placeStore } from "@/stores";
export function genPredictReq(): PredictReq {
export function genPredictReq(msg: ygopro.StocGameMessage): PredictReq {
// 全局信息可以从 `matStore` 里面拿
const mat = matStore;
// 卡片信息可以从 `cardStore` 里面拿
......@@ -9,6 +9,8 @@ export function genPredictReq(): PredictReq {
// 选择场上位置的可选项可以从 `cardStore` 里面拿
// 也可以从 `selectPlace` msg 里面获取
const place = placeStore;
// select_xxx msg 从参数 `msg` 里获取
// 这里已经保证 `msg` 是众多 `select_xxx` msg 中的一个
const duelId = mat.duelId;
const index = mat.agentIndex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment