public static int AddHeroDungeonLevelChallengeNums(IntPtr l) { int result; try { DataSectionHeroDungeon dataSectionHeroDungeon = (DataSectionHeroDungeon)LuaObject.checkSelf(l); HeroDungeonLevel level; LuaObject.checkType <HeroDungeonLevel>(l, 2, out level); int nums; LuaObject.checkType(l, 3, out nums); dataSectionHeroDungeon.AddHeroDungeonLevelChallengeNums(level, nums); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }