Exemplo n.º 1
0
 static int QPYX_GetSafe_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         string       QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
         float        QPYX_arg1_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
         WWWOperation QPYX_o_YXQP    = WWWUtil.GetSafe(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 2
0
 static int GetSafe(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         string       arg0 = ToLua.CheckString(L, 1);
         float        arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
         WWWOperation o    = WWWUtil.GetSafe(arg0, arg1);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }