public static int GetChapterTotalStars(IntPtr l) { int result; try { DataSectionRift dataSectionRift = (DataSectionRift)LuaObject.checkSelf(l); int chapterId; LuaObject.checkType(l, 2, out chapterId); int chapterTotalStars = dataSectionRift.GetChapterTotalStars(chapterId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, chapterTotalStars); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }