Commit 0d7db7ab authored by timel's avatar timel

fix: some imports

parent 4ad6b82a
import { ygopro } from "@/api"; import { ygopro } from "@/api";
import MsgSelectCard = ygopro.StocGameMessage.MsgSelectCard; import MsgSelectCard = ygopro.StocGameMessage.MsgSelectCard;
import { fetchCheckCardMeta, messageStore } from "@/stores"; import { CardZoneToChinese, fetchCheckCardMeta, messageStore } from "@/stores";
import { CardZoneToChinese } from "./util";
export default (selectCard: MsgSelectCard) => { export default (selectCard: MsgSelectCard) => {
const _player = selectCard.player; const _player = selectCard.player;
......
import { fetchStrings, ygopro } from "@/api"; import { fetchStrings, ygopro } from "@/api";
import { CardMeta, fetchCard } from "@/api/cards"; import { CardMeta, fetchCard } from "@/api/cards";
import { messageStore } from "@/stores"; import { CardZoneToChinese, messageStore } from "@/stores";
import { CardZoneToChinese } from "./util";
type MsgSelectEffectYn = ygopro.StocGameMessage.MsgSelectEffectYn; type MsgSelectEffectYn = ygopro.StocGameMessage.MsgSelectEffectYn;
......
...@@ -2,46 +2,7 @@ import { ygopro } from "@/api"; ...@@ -2,46 +2,7 @@ import { ygopro } from "@/api";
import { fetchCard, getCardStr } from "@/api/cards"; import { fetchCard, getCardStr } from "@/api/cards";
import { matStore, messageStore } from "@/stores"; import { matStore, messageStore } from "@/stores";
function CardZoneToChinese(zone: ygopro.CardZone): string { import { CardZoneToChinese } from "./cardZoneToChinese";
switch (zone) {
case ygopro.CardZone.DECK: {
return "卡组";
}
case ygopro.CardZone.HAND: {
return "手牌";
}
case ygopro.CardZone.EXTRA: {
return "额外卡组";
}
case ygopro.CardZone.GRAVE: {
return "墓地";
}
case ygopro.CardZone.FZONE: {
return "FZONE";
}
case ygopro.CardZone.MZONE: {
return "怪兽区";
}
case ygopro.CardZone.SZONE: {
return "魔法陷阱区";
}
case ygopro.CardZone.REMOVED: {
return "除外区";
}
case ygopro.CardZone.OVERLAY: {
return "超量区";
}
case ygopro.CardZone.PZONE: {
return "灵摆区";
}
case ygopro.CardZone.ONFIELD: {
return "场地区";
}
default: {
return "未知区域";
}
}
}
type Location = type Location =
| ygopro.CardLocation | ygopro.CardLocation
......
export * from "./cardZoneToChinese";
export * from "./fetchCheckCardMeta"; export * from "./fetchCheckCardMeta";
export * from "./fetchHint"; export * from "./fetchHint";
export * from "./fetchOverlayMeta"; export * from "./fetchOverlayMeta";
......
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