feat(Card): 卡牌基本框架,尚未测试

This commit is contained in:
2025-10-14 14:10:20 +08:00
parent eba8d5792d
commit 9536e1b1c8
16 changed files with 246 additions and 58 deletions

View File

@@ -0,0 +1,28 @@
using UnityEngine;
namespace Card
{
[System.Serializable]
public class EffectData
{
public EffectType type; // 效果类型,例如攻击、治疗、抽卡
public int value; // 参数值
public TargetType target; // 可选参数:目标类型("self", "enemy", "all"
}
public enum TargetType
{
Self,
Enemy,
All,
None
}
public enum EffectType
{
Damage,
Heal,
DrawCard,
AddBuff,
}
}