Commit 81addd86 authored by Chunchi Che's avatar Chunchi Che

add selected in CardType

parent 070bf272
Pipeline #22292 passed with stages
in 12 minutes and 9 seconds
......@@ -63,6 +63,7 @@ export default async (start: ygopro.StocGameMessage.MsgStart) => {
text: {},
},
isToken: !((i + 1) % 3),
selected: false,
})
)
)
......
......@@ -48,9 +48,6 @@ export default (updateData: MsgUpdateData) => {
);
console.info(field);
}
if (target?.reload) {
target.reload = false;
}
}
});
}
......
......@@ -20,11 +20,10 @@ export interface CardType {
sequence: number;
}>; // 选择位置状态下的互动信息
counters: { [type: number]: number }; // 指示器
reload?: boolean; // 这个字段会在收到MSG_RELOAD_FIELD的时候设置成true,在收到MSG_UPDATE_DATE的时候设置成false
isToken: boolean; // 是否是token
chainIndex?: number /*连锁的序号,如果为空表示不在连锁
TODO: 目前是妥协的设计,因为其实一张卡是可以在同一个连锁链中被连锁多次的,这里为了避免太过复杂只保存最后的连锁序号*/;
selected: boolean; // 当前卡是否被选择成为效果的对象
}
class CardStore {
......
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