//------------------------------------------------------------------------------ // // 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 ItemShopGift : Item, IItem { public const string ASSET_NAME = "shop"; /// /// 1.商城每日爬坡 2.礼包每日爬坡 3.礼包每周爬坡 4.VIP免费礼包 5.VIP付费礼包 /// index:1 /// public int type { get; private set; } /// /// /// index:2 /// public int prev { get; private set; } /// /// 原始价格 /// index:3 /// public int[] price { get; private set; } /// /// 购买内容 /// index:4 /// public int[] exchange { get; private set; } /// /// 1:首充 /// index:5 /// public int extraFlag { get; private set; } /// /// /// index:6 /// public string extraName { get; private set; } /// /// 礼包的名字 /// index:7 /// public string name { get; private set; } /// /// 礼包描述 /// index:8 /// public string description { get; private set; } /// /// 道具图标 /// index:9 /// public string[] icon { get; private set; } /// /// 每日获得 /// index:10 /// public int timeId { get; private set; } /// /// 优惠率图标 /// index:11 /// public string discount { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); prev = list.GetInt(2); price = list.GetIntArray(3); exchange = list.GetIntArray(4); extraFlag = list.GetInt(5); extraName = list.GetString(6); name = list.GetString(7); description = list.GetString(8); icon = list.GetStringArray(9); timeId = list.GetInt(10); discount = list.GetString(11); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("ShopGift"); 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 ItemShopGift CreateThis() { return new ItemShopGift(); } } }