2024-01-16 16:36:15 +00:00
|
|
|
|
declare type CardBaseUIData = {
|
|
|
|
|
name?: string;
|
|
|
|
|
suit?: string;
|
|
|
|
|
number?: number;
|
2024-02-05 16:26:11 +00:00
|
|
|
|
nature?: string | null;
|
2024-01-16 16:36:15 +00:00
|
|
|
|
|
|
|
|
|
//用于某些方法,用于过滤卡牌的额外结构
|
2024-01-27 10:49:55 +00:00
|
|
|
|
type?: string | string[];
|
2024-01-16 16:36:15 +00:00
|
|
|
|
subtype?: string;
|
|
|
|
|
color?: string;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否时视为牌
|
|
|
|
|
*
|
|
|
|
|
* 是本来的卡牌,则为true,作为视为牌则为false/undefined
|
|
|
|
|
* 在useCard使用时,作为视为牌,会把next.cards,设置为card.cards;
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
isCard?: boolean;
|
|
|
|
|
|
|
|
|
|
/** 真实使用的卡牌 */
|
|
|
|
|
cards?: Card[];
|
|
|
|
|
}
|