Exemple #1
0
    public static int SetNextRandomEventFlushTime(IntPtr l)
    {
        int result;

        try
        {
            DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l);
            DateTime nextRandomEventFlushTime;
            LuaObject.checkValueType <DateTime>(l, 2, out nextRandomEventFlushTime);
            dataSecionRandomEvent.SetNextRandomEventFlushTime(nextRandomEventFlushTime);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }