//------------------------------------------------------------------------------ // // 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: city.xlsx /// public partial class ItemCityEvent : Item, IItem { public const string ASSET_NAME = "city"; /// /// 1.红颜好感 2.击杀怪物 3.送信任务 4.奇遇任务 5.乞讨任务 6.宠物 /// index:1 /// public int type { get; private set; } /// /// /// index:2 /// public int[] typeArgs { get; private set; } /// /// /// index:3 /// public int nameId { get; private set; } /// /// /// index:4 /// public int descriptionId { get; private set; } /// /// /// index:5 /// public int[] rewards { get; private set; } /// /// /// index:6 /// public int rewardBox { get; private set; } /// /// 关联剧情 /// index:7 /// public int story { get; private set; } /// /// 选项1 /// index:8 /// public int[][] option_1 { get; private set; } /// /// 选项1文字 /// index:9 /// public string[] matter_1 { get; private set; } /// /// /// index:10 /// public string[] talk_1 { get; private set; } /// /// 选项2 /// index:11 /// public int[][] option_2 { get; private set; } /// /// 选项2文字 /// index:12 /// public string[] matter_2 { get; private set; } /// /// /// index:13 /// public string[] talk_2 { get; private set; } /// /// /// index:14 /// public string bg { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); typeArgs = list.GetIntArray(2); nameId = list.GetInt(3); descriptionId = list.GetInt(4); rewards = list.GetIntArray(5); rewardBox = list.GetInt(6); story = list.GetInt(7); option_1 = list.GetIntArray2(8); matter_1 = list.GetStringArray(9); talk_1 = list.GetStringArray(10); option_2 = list.GetIntArray2(11); matter_2 = list.GetStringArray(12); talk_2 = list.GetStringArray(13); bg = list.GetString(14); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("CityEvent"); 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 ItemCityEvent CreateThis() { return new ItemCityEvent(); } } }