//------------------------------------------------------------------------------ // // 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 ItemBeautySkin : Item, IItem { public const string ASSET_NAME = "home"; /// /// 动态皮肤资源名 /// index:1 /// public string asset { get; private set; } /// /// 静态皮肤 /// index:2 /// public string picture { get; private set; } /// /// /// index:3 /// public string sound { get; private set; } /// /// /// index:4 /// public string[] icon { get; private set; } /// /// /// index:5 /// public string name { get; private set; } /// /// /// index:6 /// public int quality { get; private set; } /// /// /// index:7 /// public string label { get; private set; } /// /// 皮肤效果 /// index:8 /// public string effect { get; private set; } /// /// 获取途径 /// index:9 /// public string getWay { get; private set; } /// /// 皮肤解锁条件 /// index:10 /// public int[] cost { get; private set; } /// /// 初始值 /// index:11 /// public int[] addValue { get; private set; } /// /// 升级消耗 /// index:12 /// public int[] addCost { get; private set; } /// /// 等级上限 /// index:13 /// public int maxLevel { get; private set; } /// /// /// index:14 /// public string talk { get; private set; } public void Load(IList list) { id = list.GetInt(0); asset = list.GetString(1); picture = list.GetString(2); sound = list.GetString(3); icon = list.GetStringArray(4); name = list.GetString(5); quality = list.GetInt(6); label = list.GetString(7); effect = list.GetString(8); getWay = list.GetString(9); cost = list.GetIntArray(10); addValue = list.GetIntArray(11); addCost = list.GetIntArray(12); maxLevel = list.GetInt(13); talk = list.GetString(14); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("BeautySkin"); 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 ItemBeautySkin CreateThis() { return new ItemBeautySkin(); } } }