Example #1
0
    static int SetIntervalTime(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                TimeEvent obj  = (TimeEvent)ToLua.CheckObject <TimeEvent>(L, 1);
                float     arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
                TimeEvent o    = obj.SetIntervalTime(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3)
            {
                TimeEvent obj  = (TimeEvent)ToLua.CheckObject <TimeEvent>(L, 1);
                float     arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
                System.Action <TimeEvent> arg1 = (System.Action <TimeEvent>)ToLua.CheckDelegate <System.Action <TimeEvent> >(L, 3);
                TimeEvent o = obj.SetIntervalTime(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: TimeEvent.SetIntervalTime"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int QPYX_SetIntervalTime_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 2)
         {
             TimeEvent QPYX_obj_YXQP  = (TimeEvent)ToLua.CheckObject <TimeEvent>(L_YXQP, 1);
             float     QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
             TimeEvent QPYX_o_YXQP    = QPYX_obj_YXQP.SetIntervalTime(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 3)
         {
             TimeEvent QPYX_obj_YXQP  = (TimeEvent)ToLua.CheckObject <TimeEvent>(L_YXQP, 1);
             float     QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
             System.Action <TimeEvent> QPYX_arg1_YXQP = (System.Action <TimeEvent>)ToLua.CheckDelegate <System.Action <TimeEvent> >(L_YXQP, 3);
             TimeEvent QPYX_o_YXQP = QPYX_obj_YXQP.SetIntervalTime(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: TimeEvent.SetIntervalTime"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }