From 9474b5afa08a0b528c27ff275efc0cbb65ee94d1 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Mon, 13 Mar 2023 22:59:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(GCG):=20=E7=B2=97=E7=95=A5=E5=8F=82?= =?UTF-8?q?=E8=80=83=E7=B1=B3=E6=B8=B8=E7=A4=BE=E5=8D=A1=E7=89=8C=E5=9B=BE?= =?UTF-8?q?=E9=89=B4=E5=86=99=E4=BA=86=E4=B8=AA=E6=8E=A5=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/GCG.ts | 192 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 src/interface/GCG.ts diff --git a/src/interface/GCG.ts b/src/interface/GCG.ts new file mode 100644 index 00000000..90c1998a --- /dev/null +++ b/src/interface/GCG.ts @@ -0,0 +1,192 @@ +/** + * @file interface GCG.ts + * @description interface GCG.ts + * @description 分类参考:米游社卡牌图鉴 + * @author BTMuli + * @since Alpha + */ + +/** + * @description Gcg 基本卡牌类型 + * @interface BaseCardType + * @since Alpha + * @property {string} characterCard 角色卡 + * @property {string} actionCard 行动卡 + * @property {string} monsterCard 魔物卡 + * @return BaseCardType + */ +export enum BaseCardType { + characterCard = "角色牌", + actionCard = "行动牌", + monsterCard = "魔物牌", +} + +/** + * @description Gcg 角色牌分类依据 + * @interface CharacterCardType + * @since Alpha + * @see BaseCardType + * @property {EnumElement} element 元素 + * @property {EnumWeapon} weapon 武器 + * @property {EnumCamp} camp 阵营 + * @return CharacterCardType + */ +export interface CharacterCardType { + element: EnumElement; + weapon: EnumWeapon; + camp: EnumCamp; +} + +/** + * @description Gcg 行动牌分类依据 + * @interface ActionCardType + * @since Alpha + * @see BaseCardType + * @property {EnumActionType} actionType 类型 + * @property {EnumActionTag} actionTag 标签 + * @property {EnumActionCost} actionCost 花费 + * @return ActionCardType + */ +export interface ActionCardType { + actionType: EnumActionType; + actionTag: EnumActionTag; + actionCost: EnumActionCost; +} + +/** + * @description 角色牌元素 + * @enum EnumElement + * @since Alpha + * @see CharacterCardType + * @property {string} pyro 火 + * @property {string} hydro 水 + * @property {string} cryo 冰 + * @property {string} electro 雷 + * @property {string} anemo 风 + * @property {string} geo 岩 + * @property {string} dendro 草 + * @return EnumElement + */ +export enum EnumElement { + pyro = "火", + hydro = "水", + cryo = "冰", + electro = "雷", + anemo = "风", + geo = "岩", + dendro = "草", +} + +/** + * @description 角色牌武器 + * @enum EnumWeapon + * @since Alpha + * @see CharacterCardType + * @property {string} sword 单手剑 + * @property {string} claymore 双手剑 + * @property {string} pole 长柄武器 + * @property {string} bow 弓 + * @property {string} catalyst 法器 + * @property {string} other 其他武器 + * @return EnumWeapon + */ +export enum EnumWeapon { + sword = "单手剑", + claymore = "双手剑", + pole = "长柄武器", + bow = "弓", + catalyst = "法器", + other = "其他武器", +} + +/** + * @description 角色牌阵营 + * @enum EnumCamp + * @since Alpha + * @see CharacterCardType + * @property {string} mondstadt 蒙德 + * @property {string} liyue 璃月 + * @property {string} inazuma 稻妻 + * @property {string} sumeru 须弥 + * @property {string} fatui 愚人众 + * @property {string} monster 魔物 + * @return EnumCamp + */ +export enum EnumCamp { + mondstadt = "蒙德", + liyue = "璃月", + inazuma = "稻妻", + sumeru = "须弥", + fatui = "愚人众", + monster = "魔物", +} + +/** + * @description 行动牌类型 + * @enum EnumActionType + * @since Alpha + * @see ActionCardType + * @property {string} equipment 装备牌 + * @property {string} event 事件牌 + * @property {string} support 支援牌 + * @return EnumActionType + */ +export enum EnumActionType { + equipment = "装备牌", + event = "事件牌", + support = "支援牌", +} + +/** + * @description 行动牌标签 + * @enum EnumActionTag + * @since Alpha + * @see ActionCardType + * @property {string} weapon 武器 + * @property {string} artifact 圣遗物 + * @property {string} talent 天赋 + * @property {string} food 料理 + * @property {string} item 道具 + * @property {string} partner 伙伴 + * @property {string} filed 场地 + * @property {string} elementResonance 元素共鸣 + * @property {string} other 其他标签 + * @return EnumActionTag + */ +export enum EnumActionTag { + weapon = "武器", + artifact = "圣遗物", + talent = "天赋", + food = "料理", + item = "道具", + partner = "伙伴", + filed = "场地", + elementResonance = "元素共鸣", + other = "其他标签", +} + +/** + * @description 行动牌花费 + * @enum EnumActionCost + * @since Alpha + * @see ActionCardType + * @property {string} cost0 花费0 + * @property {string} cost1 花费1 + * @property {string} cost2 花费2 + * @property {string} cost3 花费3 + * @property {string} cost4 花费4 + * @property {string} cost5 花费5 + * @property {string} cost6 花费6 + * @property {string} other 其他花费 + * @return EnumActionCost + */ +export enum EnumActionCost { + cost0 = "花费0", + cost1 = "花费1", + cost2 = "花费2", + cost3 = "花费3", + cost4 = "花费4", + cost5 = "花费5", + cost6 = "花费6", + other = "其他花费", +}