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

        try
        {
            DataSectionRift dataSectionRift = (DataSectionRift)LuaObject.checkSelf(l);
            int             achievementId;
            LuaObject.checkType(l, 2, out achievementId);
            DateTime currTime;
            LuaObject.checkValueType <DateTime>(l, 3, out currTime);
            dataSectionRift.AddAchievementRelationId(achievementId, currTime);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }