//------------------------------------------------------------------------------ // // 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 ItemLevel : Item, IItem { public const string ASSET_NAME = "level"; /// /// 章节名 /// index:1 /// public string name { get; private set; } /// /// 关卡类型 1:打怪 2:无尽 /// index:2 /// public int type { get; private set; } /// /// 初始地图 /// index:3 /// public int[] startStage { get; private set; } /// /// 层数 /// index:4 /// public int stageTier { get; private set; } /// /// 终点(Boss关) /// index:5 /// public int[] endStage { get; private set; } /// /// 技能商店礼包ID /// index:6 /// public int[] skillCardPackage { get; private set; } /// /// 技能点 /// index:7 /// public int skillCardPoint { get; private set; } /// /// 地图坐标点 /// index:8 /// public int[] iconPos { get; private set; } /// /// 关卡掉落展示 /// index:9 /// public int[] drop { get; private set; } /// /// 关卡插图 /// index:10 /// public string figure { get; private set; } /// /// 关卡描述 /// index:11 /// public string description { get; private set; } /// /// 关卡难度系数 /// index:12 /// public int[] difficulty { get; private set; } /// /// 战力压制 /// index:13 /// public int requireCV { get; private set; } /// /// 每关产出经验 /// index:14 /// public int levelExp { get; private set; } /// /// [金币宝箱,普通宝箱ID,稀有宝箱ID,随机宝箱ID] /// index:15 /// public int[] shopBox { get; private set; } /// /// /// index:16 /// public string[] unlockIcon { get; private set; } /// /// 解锁标识 /// index:17 /// public int unlockTips { get; private set; } /// /// 1:基础怪 2:精英怪 3:远程(弓箭兵) 4:远程(闪电兵) 5:远程(炸弹兵) 6:自爆兵 7:特殊兵种1 8:特殊兵种2 9:基础Boss 10:Boss [1,2,3,4,5,6,7,8,9,10] /// index:18 /// public int[] enemies { get; private set; } /// /// 路段宝箱 /// index:19 /// public int[] boxes { get; private set; } /// /// 剧情 /// index:20 /// public int[][] stories { get; private set; } /// /// 地图资源 /// index:21 /// public string[] assets { get; private set; } /// /// /// index:22 /// public int[] rewards { get; private set; } public void Load(IList list) { id = list.GetInt(0); name = list.GetString(1); type = list.GetInt(2); startStage = list.GetIntArray(3); stageTier = list.GetInt(4); endStage = list.GetIntArray(5); skillCardPackage = list.GetIntArray(6); skillCardPoint = list.GetInt(7); iconPos = list.GetIntArray(8); drop = list.GetIntArray(9); figure = list.GetString(10); description = list.GetString(11); difficulty = list.GetIntArray(12); requireCV = list.GetInt(13); levelExp = list.GetInt(14); shopBox = list.GetIntArray(15); unlockIcon = list.GetStringArray(16); unlockTips = list.GetInt(17); enemies = list.GetIntArray(18); boxes = list.GetIntArray(19); stories = list.GetIntArray2(20); assets = list.GetStringArray(21); rewards = list.GetIntArray(22); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("Level"); 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 ItemLevel CreateThis() { return new ItemLevel(); } } }