//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using CodeStage.AntiCheat.ObscuredTypes; namespace G { /// /// Generated from: level.xlsx /// partial class ItemLevel { public int maxStage { get { return endStage != null && endStage.Length > 0 ? stageTier + 2 : stageTier + 1; } } /// /// 终点 /// public bool hasEnd { get { return endStage != null && endStage.Length > 0; } } public bool isUnlock { get { int pId = id - 1; if (pId > 0) { var level = ItemProxy.Instance.GetStaticItem(pId); return level != null && level.isCompleted; } return true; } } /// /// 是否完成 /// public bool isCompleted { get; set; } public int chapterId { get { return chapter != null ? chapter.id : 0; } } public ItemChapter chapter { get; set; } //public ObscuredInt exp; public Item.ItemInfo[] rewardInfos; public override void Init() { //exp = levelExp; rewardInfos = Item.ItemInfo.FromArray(rewards); } } }