//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace G { using System.Collections; using System.Collections.Generic; using F; using F.Item; /// /// Generated from: skill.xlsx /// public partial class ItemMoves : Item, IItem { public const string ASSET_NAME = "skill"; /// /// 前置技能ID /// index:1 /// public int parent { get; private set; } /// /// 权重 0:默认使用卡牌包权重 /// index:2 /// public int weight { get; private set; } /// /// 0:增强参数 1:主动技能 4:普攻触发 8:翻滚触发 16:击杀触发 /// index:3 /// public int trigger { get; private set; } /// /// 1:技能 2:buff /// index:4 /// public int targetType { get; private set; } /// /// 目标ID /// index:5 /// public int targetId { get; private set; } /// /// 目标参数:(累加计算方式) 5:[1:概率,2:伤害固定值,3:伤害百分比,4:CD固定值,5:CD百分比,6:触发事件减少CD,7:个数,8:持续时间,9:参数1,10:参数2] /// index:6 /// public int[] targetArgs { get; private set; } /// /// 价格 /// index:7 /// public int price { get; private set; } /// /// 0:普攻 1:召唤 2:技能 3:属性 /// index:8 /// public int label { get; private set; } /// /// 0:普通 1:稀有 2:传说 /// index:9 /// public int quality { get; private set; } /// /// 越大推荐 /// index:10 /// public int order { get; private set; } /// /// 解锁任务 /// index:11 /// public int unlock { get; private set; } /// /// 技能名 /// index:12 /// public string name { get; private set; } /// /// 技能描述 /// index:13 /// public string description { get; private set; } /// /// 图标 /// index:14 /// public string[] icon { get; private set; } public void Load(IList list) { id = list.GetInt(0); parent = list.GetInt(1); weight = list.GetInt(2); trigger = list.GetInt(3); targetType = list.GetInt(4); targetId = list.GetInt(5); targetArgs = list.GetIntArray(6); price = list.GetInt(7); label = list.GetInt(8); quality = list.GetInt(9); order = list.GetInt(10); unlock = list.GetInt(11); name = list.GetString(12); description = list.GetString(13); icon = list.GetStringArray(14); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Moves"); if (list == null || list.Count == 0) { return false; } int i = 0; for (int c = list.Count; i < c; i++) { var item = CreateThis(); item.Load((IList)list[i]); result.Add(item); } return true; } private static ItemMoves CreateThis() { return new ItemMoves(); } } }