Commit 6b06ad57 authored by chechunchi's avatar chechunchi

add announce service

parent b3d6aa61
Pipeline #21825 passed with stages
in 12 minutes and 43 seconds
import { ygopro } from "@/api";
type MsgAnnounce = ygopro.StocGameMessage.MsgAnnounce;
export default (announce: MsgAnnounce) => {
console.log(announce);
};
import { ygopro } from "@/api";
import { matStore } from "@/stores";
import onAnnounce from "./announce";
import onMsgAttack from "./attack";
import onMsgAttackDisable from "./attackDisable";
import onMsgChainEnd from "./chainEnd";
......@@ -270,6 +271,11 @@ export default async function handleGameMsg(pb: ygopro.YgoStocMsg) {
break;
}
case "announce": {
onAnnounce(msg.announce);
break;
}
case "unimplemented": {
onUnimplemented(msg.unimplemented);
......
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