//------------------------------------------------------------------------------ // // 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 ItemShopBox : Item, IItem { public const string ASSET_NAME = "shop"; /// /// 类型 /// index:1 /// public int type { get; private set; } /// /// 宝箱名 /// index:2 /// public string name { get; private set; } /// /// 宝箱图标 /// index:3 /// public string[] icon { get; private set; } /// /// 保底 /// index:4 /// public int random { get; private set; } /// /// 掉落宝箱 /// index:5 /// public int dropBox { get; private set; } /// /// 保底宝箱 /// index:6 /// public int randomBox { get; private set; } /// /// 单抽价格 /// index:7 /// public int[] price { get; private set; } /// /// 10连抽价格 /// index:8 /// public int[] multiPrice { get; private set; } /// /// 免费倒计时 /// index:9 /// public int freeTime { get; private set; } /// /// 广告次数上限 /// index:10 /// public int adTimeId { get; private set; } /// /// 开启间隔 /// index:11 /// public int openInterval { get; private set; } /// /// 宝箱奖励描述 /// index:12 /// public int descriptionId { get; private set; } /// /// 钥匙 /// index:13 /// public int[] keyPrice { get; private set; } /// /// 宝箱奖励规则 /// index:14 /// public string tips { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); name = list.GetString(2); icon = list.GetStringArray(3); random = list.GetInt(4); dropBox = list.GetInt(5); randomBox = list.GetInt(6); price = list.GetIntArray(7); multiPrice = list.GetIntArray(8); freeTime = list.GetInt(9); adTimeId = list.GetInt(10); openInterval = list.GetInt(11); descriptionId = list.GetInt(12); keyPrice = list.GetIntArray(13); tips = list.GetString(14); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("ShopBox"); 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 ItemShopBox CreateThis() { return new ItemShopBox(); } } }