2025-10-14 14:10:20 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2025-10-15 21:31:13 +08:00
|
|
|
|
namespace Gameplay
|
2025-10-14 14:10:20 +08:00
|
|
|
|
{
|
|
|
|
|
[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,
|
|
|
|
|
}
|
|
|
|
|
}
|