Commit 5a313ce6 authored by Chunchi Che's avatar Chunchi Che

update local state

parent dc2a8749
......@@ -65,4 +65,6 @@ export interface Interactivity {
interactType: InteractType;
// 如果`interactType`是`ACTIVATE`,这个字段是对应的效果编号
activateIndex?: number;
// 用户点击后,需要回传给服务端的`response`
response: number;
}
......@@ -56,6 +56,7 @@ export default (selectIdleCmd: MsgSelectIdleCmd, dispatch: AppDispatch) => {
interactivity: {
interactType,
activateIndex: data.effect_description,
response: data.response,
},
})
);
......@@ -64,7 +65,7 @@ export default (selectIdleCmd: MsgSelectIdleCmd, dispatch: AppDispatch) => {
addHandsInteractivity({
player,
index: card_info.sequence,
interactivity: { interactType },
interactivity: { interactType, response: data.response },
})
);
}
......
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