🏷️ fix(GCG): GCG 类型完善

This commit is contained in:
BTMuli
2023-04-14 17:28:01 +08:00
parent a69f0e46bb
commit e5a741a517
5 changed files with 1254 additions and 2353 deletions

View File

@@ -53,11 +53,11 @@ export interface BaseCard {
/**
* @description Gcg 角色卡牌
* @interface CharacterCard
* @since Alpha
* @since Alpha v0.1.3
* @see BaseCard
* @see CharacterCardType
* @property {EnumElement} info.element 元素
* @property {EnumWeapon} info.weapon 武器
* @property {BTMuli.Genshin.Wiki.EnumElement} info.element 元素
* @property {BTMuli.Genshin.Wiki.EnumWeapon} info.weapon 武器
* @property {EnumCamp} info.camp 阵营
* @property {string} info.source 卡牌来源
* @property {string} info.title 卡牌标题
@@ -75,8 +75,8 @@ export interface BaseCard {
export interface CharacterCard extends BaseCard {
type: BaseCardType.characterCard
info: {
element: EnumElement
weapon: EnumWeapon
element: BTMuli.Genshin.Wiki.EnumElement
weapon: BTMuli.Genshin.Wiki.EnumWeapon
camp: EnumCamp
source: string
title: string
@@ -129,11 +129,11 @@ export interface ActionCard extends BaseCard {
* @description Gcg 魔物卡牌
* @description 与角色卡牌类似
* @interface MonsterCard
* @since Alpha
* @since Alpha v0.1.3
* @see BaseCard
* @see CharacterCardType
* @property {EnumElement} info.element 元素
* @property {EnumWeapon} info.weapon 武器
* @property {BTMuli.Genshin.Wiki.EnumElement} info.element 元素
* @property {BTMuli.Genshin.Wiki.EnumWeapon} info.weapon 武器
* @property {EnumCamp} info.camp 阵营
* @property {string} info.source 卡牌来源
* @description 无标题跟描述
@@ -149,8 +149,8 @@ export interface ActionCard extends BaseCard {
export interface MonsterCard extends BaseCard {
type: BaseCardType.monsterCard
info: {
element: EnumElement
weapon: EnumWeapon
element: BTMuli.Genshin.Wiki.EnumElement
weapon: BTMuli.Genshin.Wiki.EnumWeapon
camp: EnumCamp
source: string
}
@@ -168,16 +168,16 @@ export interface MonsterCard extends BaseCard {
/**
* @description Gcg 角色牌分类依据
* @interface CharacterCardType
* @since Alpha
* @since Alpha v0.1.3
* @see BaseCardType
* @property {EnumElement} element 元素
* @property {EnumWeapon} weapon 武器
* @property {BTMuli.Genshin.Wiki.EnumElement} element 元素
* @property {BTMuli.Genshin.Wiki.EnumWeapon} weapon 武器
* @property {EnumCamp} camp 阵营
* @returns {CharacterCardType}
*/
export interface CharacterCardType {
element: EnumElement
weapon: EnumWeapon
element: BTMuli.Genshin.Wiki.EnumElement
weapon: BTMuli.Genshin.Wiki.EnumWeapon
camp: EnumCamp
}
@@ -197,52 +197,6 @@ export interface ActionCardType {
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 草元素
* @returns {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 其他武器
* @returns {EnumWeapon}
*/
export enum EnumWeapon {
sword = "单手剑",
claymore = "双手剑",
pole = "长柄武器",
bow = "弓",
catalyst = "法器",
other = "其他武器",
}
/**
* @description 角色牌阵营
* @enum {EnumCamp}