public static int InitAllChapterStar(IntPtr l) { int result; try { DataSectionRift dataSectionRift = (DataSectionRift)LuaObject.checkSelf(l); DateTime updateTime; LuaObject.checkValueType <DateTime>(l, 2, out updateTime); int lastRiftStars; LuaObject.checkType(l, 3, out lastRiftStars); DateTime lastRiftRankUpdateTime; LuaObject.checkValueType <DateTime>(l, 4, out lastRiftRankUpdateTime); dataSectionRift.InitAllChapterStar(updateTime, lastRiftStars, lastRiftRankUpdateTime); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }