Пример #1
0
 static int QPYX_ScreenShotScale_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
         int    QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
         bool   QPYX_o_YXQP    = CustomerUtil.ScreenShotScale(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         LuaDLL.lua_pushboolean(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Пример #2
0
 static int ScreenShotScale(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         string arg0 = ToLua.CheckString(L, 1);
         int    arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool   o    = CustomerUtil.ScreenShotScale(arg0, arg1);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }