//------------------------------------------------------------------------------ // // 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 ItemBuff : Item, IItem { public const string ASSET_NAME = "skill"; /// /// 1.属性固定值 2.属性百分比 3.特殊类型固定值 4:特殊类型百分比 /// index:1 /// public int kind { get; private set; } /// /// 参数 4:特殊类型: 1百分比类型 2固定值类型 5:元素类型: 1百分比类型 3元素触发概率 4元素伤害固定加成 /// index:2 /// public int[] kindArgs { get; private set; } /// /// 图标 /// index:3 /// public string[] icon { get; private set; } /// /// buff名字 /// index:4 /// public string name { get; private set; } /// /// buff描述 /// index:5 /// public string text { get; private set; } public void Load(IList list) { id = list.GetInt(0); kind = list.GetInt(1); kindArgs = list.GetIntArray(2); icon = list.GetStringArray(3); name = list.GetString(4); text = list.GetString(5); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Buff"); 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 ItemBuff CreateThis() { return new ItemBuff(); } } }