//------------------------------------------------------------------------------ // // 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: home.xlsx /// public partial class ItemBeautySkill : Item, IItem { public const string ASSET_NAME = "home"; /// /// 技能解锁条件 /// index:1 /// public int[] unlock { get; private set; } /// /// /// index:2 /// public string name { get; private set; } /// /// 技能效果 /// index:3 /// public string effect { get; private set; } /// /// 效果提升数值 /// index:4 /// public string effectUp { get; private set; } /// /// 效果提升经验 /// index:5 /// public int[] effectUpExp { get; private set; } /// /// 初始值 /// index:6 /// public int[] addValue { get; private set; } /// /// 初始消耗 /// index:7 /// public int[] addCost { get; private set; } /// /// 等级上限 /// index:8 /// public int maxLevel { get; private set; } public void Load(IList list) { id = list.GetInt(0); unlock = list.GetIntArray(1); name = list.GetString(2); effect = list.GetString(3); effectUp = list.GetString(4); effectUpExp = list.GetIntArray(5); addValue = list.GetIntArray(6); addCost = list.GetIntArray(7); maxLevel = list.GetInt(8); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("BeautySkill"); 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 ItemBeautySkill CreateThis() { return new ItemBeautySkill(); } } }