// Token: 0x06007688 RID: 30344 RVA: 0x00206FB8 File Offset: 0x002051B8 public int GetRiftLevelStars(int levelId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetRiftLevelStarsInt32_hotfix != null) { return(Convert.ToInt32(this.m_GetRiftLevelStarsInt32_hotfix.call(new object[] { this, levelId }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(levelId); if (configDataRiftLevelInfo == null) { return(0); } RiftLevel riftLevel = this.m_riftDS.FindLevel(configDataRiftLevelInfo.m_chapterId, levelId); if (riftLevel == null) { return(0); } return(riftLevel.Stars); }
public static int get_LevelId(IntPtr l) { int result; try { RiftLevel riftLevel = (RiftLevel)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, riftLevel.LevelId); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int FindLevel(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 2, typeof(RiftChapter), typeof(int))) { DataSectionRift dataSectionRift = (DataSectionRift)LuaObject.checkSelf(l); RiftChapter chapter; LuaObject.checkType <RiftChapter>(l, 2, out chapter); int levelId; LuaObject.checkType(l, 3, out levelId); RiftLevel o = dataSectionRift.FindLevel(chapter, levelId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else if (LuaObject.matchType(l, total, 2, typeof(int), typeof(int))) { DataSectionRift dataSectionRift2 = (DataSectionRift)LuaObject.checkSelf(l); int chapterId; LuaObject.checkType(l, 2, out chapterId); int levelId2; LuaObject.checkType(l, 3, out levelId2); RiftLevel o2 = dataSectionRift2.FindLevel(chapterId, levelId2); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o2); result = 2; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function FindLevel to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RiftLevelToPBRiftLevel_s(IntPtr l) { int result; try { RiftLevel riftLevel; LuaObject.checkType <RiftLevel>(l, 1, out riftLevel); ProRiftLevel o = RiftLevel.RiftLevelToPBRiftLevel(riftLevel); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Stars(IntPtr l) { int result; try { RiftLevel riftLevel = (RiftLevel)LuaObject.checkSelf(l); int stars; LuaObject.checkType(l, 2, out stars); riftLevel.Stars = stars; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06007685 RID: 30341 RVA: 0x00206D60 File Offset: 0x00204F60 public int GetRiftLevelCanChallengeNums(ConfigDataRiftLevelInfo levelInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetRiftLevelCanChallengeNumsConfigDataRiftLevelInfo_hotfix != null) { return(Convert.ToInt32(this.m_GetRiftLevelCanChallengeNumsConfigDataRiftLevelInfo_hotfix.call(new object[] { this, levelInfo }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; RiftLevel riftLevel = this.m_riftDS.FindLevel(levelInfo.m_chapterId, levelInfo.ID); if (riftLevel == null) { return(base.GetRiftLevelCanChallengeMaxNums(levelInfo)); } return(base.GetRiftLevelCanChallengeMaxNums(levelInfo) - this.m_riftDS.GetLevelChallengeNums(riftLevel)); }
// Token: 0x06007687 RID: 30343 RVA: 0x00206F0C File Offset: 0x0020510C public bool IsRiftLevelChallenged(int levelId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsRiftLevelChallengedInt32_hotfix != null) { return(Convert.ToBoolean(this.m_IsRiftLevelChallengedInt32_hotfix.call(new object[] { this, levelId }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(levelId); if (configDataRiftLevelInfo == null) { return(false); } RiftLevel riftLevel = this.m_riftDS.FindLevel(configDataRiftLevelInfo.m_chapterId, levelId); return(riftLevel != null); }
public static int constructor(IntPtr l) { int result; try { int levelId; LuaObject.checkType(l, 2, out levelId); int nums; LuaObject.checkType(l, 3, out nums); int stars; LuaObject.checkType(l, 4, out stars); RiftLevel o = new RiftLevel(levelId, nums, stars); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }