//------------------------------------------------------------------------------ // // 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: shop.xlsx /// public partial class ItemShopCard : Item, IItem { public const string ASSET_NAME = "shop"; /// /// 1:充值 2:周卡 3:月卡 4:永久 5:礼包 /// index:1 /// public int type { get; private set; } /// /// 原始价格 /// index:2 /// public int price { get; private set; } /// /// 购买立刻获得 /// index:3 /// public int[] exchange { get; private set; } /// /// 1:首充翻倍 /// index:4 /// public int extraFlag { get; private set; } /// /// 翻倍描述 /// index:5 /// public string extraName { get; private set; } /// /// 礼包的名字 /// index:6 /// public string name { get; private set; } /// /// 礼包描述 /// index:7 /// public string description { get; private set; } /// /// 道具图标 /// index:8 /// public string[] icon { get; private set; } /// /// 每日获得 /// index:9 /// public int[] dailyGet { get; private set; } /// /// 有效天数 /// index:10 /// public int validity { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); price = list.GetInt(2); exchange = list.GetIntArray(3); extraFlag = list.GetInt(4); extraName = list.GetString(5); name = list.GetString(6); description = list.GetString(7); icon = list.GetStringArray(8); dailyGet = list.GetIntArray(9); validity = list.GetInt(10); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("ShopCard"); 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 ItemShopCard CreateThis() { return new ItemShopCard(); } } }