diff --git a/Engine/CLEngine.Core/CLEngine.Core.csproj b/Engine/CLEngine.Core/CLEngine.Core.csproj index bc641c77d599f4fb886648fb8933c87c52f9a490..f222c5c5bb2ec10e70eabf74b6ad638babc67194 100644 --- a/Engine/CLEngine.Core/CLEngine.Core.csproj +++ b/Engine/CLEngine.Core/CLEngine.Core.csproj @@ -295,6 +295,7 @@ + diff --git a/Engine/CLEngine.Core/framework/SkillObject.cs b/Engine/CLEngine.Core/framework/SkillObject.cs new file mode 100644 index 0000000000000000000000000000000000000000..98b5dc535adc3c0ad705d05e80d6692979648594 --- /dev/null +++ b/Engine/CLEngine.Core/framework/SkillObject.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; + +namespace CLEngine.Core.framework +{ +#if WIN + [Serializable] +#endif + [DataContract] + public class SkillObject + { + [DataMember]private string _name; + [DataMember]private string _iconPath; + [DataMember]private float _coolingTime; + [DataMember]private int _useHp; + [DataMember]private int _useMp; + [DataMember]private string _description; + [DataMember]private int _castingDistance; + [DataMember]private float _castingSpeed; + /// + /// 技能名称 + /// + public string Name + { + get { return _name; } + set { _name = value; } + } + /// + /// 技能图标路径 + /// + public string IconPath + { + get { return _iconPath; } + set { _iconPath = value; } + } + /// + /// 技能冷却时间 + /// + public float CoolingTime + { + get { return _coolingTime; } + set { _coolingTime = value; } + } + /// + /// 消耗Hp + /// + public int UseHp + { + get { return _useHp; } + set { _useHp = value; } + } + /// + /// 消耗Mp + /// + public int UseMp + { + get { return _useMp; } + set { _useMp = value; } + } + /// + /// 技能描述 + /// + public string Description + { + get { return _description; } + set { _description = value; } + } + /// + /// 施法距离 + /// + public int CastingDistance + { + get { return _castingDistance; } + set { _castingDistance = value; } + } + /// + /// 施法速度 + /// + public float CastingSpeed + { + get { return _castingSpeed; } + set { _castingSpeed = value; } + } + /// + /// 技能类型 + /// + public enum SkillType + { + Consumable, + Bullet + } + /// + /// 目标类型 + /// + public enum TargetType + { + Self, + Enemy, + Friendly + } + /// + /// 释放位置 + /// + public enum ReleasePosition + { + Self, + Target, + Mouse + } + } +}