//------------------------------------------------------------------------------ // // 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: level.xlsx /// public partial class ItemChapter : Item, IItem { public const string ASSET_NAME = "level"; /// /// 章节描述 /// index:1 /// public string name { get; private set; } /// /// 章节名位置 /// index:2 /// public int[] iconPos { get; private set; } /// /// 地图场景 /// index:3 /// public string mapAsset { get; private set; } /// /// 地图坐标 /// index:4 /// public int[] mapPos { get; private set; } /// /// 场景ID /// index:5 /// public int[] levels { get; private set; } /// /// /// index:6 /// public string atlas { get; private set; } /// /// /// index:7 /// public int[][] rewards { get; private set; } /// /// [0章节福袋,1广告宝箱,2高级宝箱,3高级宝箱保底,4神话宝箱,5神话保底宝箱,6材料宝箱,7材料保底宝箱,8广告宝箱,9钻石宝箱,10(高级)钻石宝箱,11普通货币宝箱] /// index:8 /// public int[] shopBox { get; private set; } public void Load(IList list) { id = list.GetInt(0); name = list.GetString(1); iconPos = list.GetIntArray(2); mapAsset = list.GetString(3); mapPos = list.GetIntArray(4); levels = list.GetIntArray(5); atlas = list.GetString(6); rewards = list.GetIntArray2(7); shopBox = list.GetIntArray(8); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Chapter"); 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 ItemChapter CreateThis() { return new ItemChapter(); } } }