public static int InitLevel(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRift dataSectionRift = (DataSectionRift)LuaObject.checkSelf(l);
            int             chapterId;
            LuaObject.checkType(l, 2, out chapterId);
            int levelId;
            LuaObject.checkType(l, 3, out levelId);
            int nums;
            LuaObject.checkType(l, 4, out nums);
            int stars;
            LuaObject.checkType(l, 5, out stars);
            dataSectionRift.InitLevel(chapterId, levelId, nums, stars);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }