//------------------------------------------------------------------------------ // // 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: cha.xlsx /// public partial class ItemChaSkin : Item, IItem { public const string ASSET_NAME = "cha"; /// /// /// index:1 /// public string name { get; private set; } /// /// 皮肤ICON /// index:2 /// public string[] icon { get; private set; } /// /// /// index:3 /// public string asset3d { get; private set; } /// /// [单手、双持、斧] /// index:4 /// public string[] weapon3d { get; private set; } /// /// /// index:5 /// public string[][] weaponIcons { get; private set; } /// /// 解锁任务 /// index:6 /// public int unlock { get; private set; } /// /// 衣服兑换价格 /// index:7 /// public int[] price { get; private set; } /// /// 衣服元宝价格 /// index:8 /// public int[] buyPrice { get; private set; } /// /// 武器兑换价格 /// index:9 /// public int[] weaponPrice { get; private set; } /// /// 武器元宝价格 /// index:10 /// public int[] weaponBuyPrice { get; private set; } /// /// /// index:11 /// public int quality { get; private set; } /// /// /// index:12 /// public string description { get; private set; } /// /// /// index:13 /// public int combatValue { get; private set; } public void Load(IList list) { id = list.GetInt(0); name = list.GetString(1); icon = list.GetStringArray(2); asset3d = list.GetString(3); weapon3d = list.GetStringArray(4); weaponIcons = list.GetStringArray2(5); unlock = list.GetInt(6); price = list.GetIntArray(7); buyPrice = list.GetIntArray(8); weaponPrice = list.GetIntArray(9); weaponBuyPrice = list.GetIntArray(10); quality = list.GetInt(11); description = list.GetString(12); combatValue = list.GetInt(13); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("ChaSkin"); 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 ItemChaSkin CreateThis() { return new ItemChaSkin(); } } }