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