//------------------------------------------------------------------------------ // // 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 ItemBusiness : Item, IItem { public const string ASSET_NAME = "home"; /// /// 主事件标识 /// index:1 /// public int type { get; private set; } /// /// 解锁红颜ID /// index:2 /// public int beauty { get; private set; } /// /// 每秒产出类型与数量 /// index:3 /// public int[] rewards { get; private set; } /// /// 产出间隔 /// index:4 /// public int rewardIntervalSeconds { get; private set; } /// /// /// index:5 /// public int rewardTotalSeconds { get; private set; } /// /// 文本 /// index:6 /// public string description { get; private set; } /// /// 事件1 /// index:7 /// public string matter_1 { get; private set; } /// /// 事件1条件 /// index:8 /// public int[] option_1 { get; private set; } /// /// 事件2 /// index:9 /// public string matter_2 { get; private set; } /// /// 事件2条件 /// index:10 /// public int[] option_2 { get; private set; } /// /// 事件3 /// index:11 /// public string matter_3 { get; private set; } /// /// 事件3条件 /// index:12 /// public int[] option_3 { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); beauty = list.GetInt(2); rewards = list.GetIntArray(3); rewardIntervalSeconds = list.GetInt(4); rewardTotalSeconds = list.GetInt(5); description = list.GetString(6); matter_1 = list.GetString(7); option_1 = list.GetIntArray(8); matter_2 = list.GetString(9); option_2 = list.GetIntArray(10); matter_3 = list.GetString(11); option_3 = list.GetIntArray(12); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Business"); 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 ItemBusiness CreateThis() { return new ItemBusiness(); } } }