//------------------------------------------------------------------------------ // // 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: tutorial.xlsx /// public partial class ItemTutorialCondition : Item, IItem { public const string ASSET_NAME = "tutorial"; /// /// 1Level开始 2Level结束 3开始Stage 4结束Stage 5Level时间 6Stage时间 11获得道具 12背包已满 21地图交互 22打开界面 23关闭界面 31角色状态 40结算界面 41死亡结算 42首次通关 43关闭引导界面 /// index:1 /// public int type { get; private set; } /// /// 类型1 目标场景ID 类型2 填写达到的等级 类型3 填写stageId 类型4 目标关卡ID 类型5 填写章节ID 类型6 目标关卡ID 类型7 目标关卡ID 类型8 目标关卡ID 类型9 目标场景ID /// index:2 /// public int target { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); target = list.GetInt(2); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("TutorialCondition"); 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 ItemTutorialCondition CreateThis() { return new ItemTutorialCondition(); } } }