using System.Collections; using System.Collections.Generic; using UnityEngine; using FSRole; using UnityEngine.UI; namespace FSCard { /* * 卡片的总类 */ public enum CardType { // 攻击型 CARD_TYPE_ATTACK = 1, // 防御型 CARD_TYPE_DEFANCE = 2, // 功能型 CARD_TYPE_SPEC = 3, } /* * 此为卡片组件 */ public interface Card { // 种类 CardType Type { set; get; } // 卡片的唯一标示 string ID { set; get; } // 花费的能量 int Cost { set; get; } // 韧性 int Tenacity { set; get; } // 数值 int Value { set; get; } // 目标 Role Target { set; get; } // 挂载的BUFF id string BuffID { set; get; } // 描述 string Desc { set; get; } // 发起者 Role Source { set; get; } // 卡面 Image Face { set; get; } // 韧性 Image TenacityImage { set; get; } // 花费 Image CostImage { set; get; } // Buff Text DescLabel { set; get; } // 是否正面显示 bool IsFront { set; get; } // 执行 void OnExecute(); // 设置正面或者背面 void SetFront(bool face); } }