Esempio n. 1
0
 static int QPYX_Post_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 2)
         {
             string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
             UnityEngine.WWWForm QPYX_arg1_YXQP = (UnityEngine.WWWForm)ToLua.CheckObject <UnityEngine.WWWForm>(L_YXQP, 2);
             WWWOperation        QPYX_o_YXQP    = WWWUtil.Post(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 3)
         {
             string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
             UnityEngine.WWWForm QPYX_arg1_YXQP = (UnityEngine.WWWForm)ToLua.CheckObject <UnityEngine.WWWForm>(L_YXQP, 2);
             UnityEngine.Events.UnityAction <float> QPYX_arg2_YXQP = (UnityEngine.Events.UnityAction <float>)ToLua.CheckDelegate <UnityEngine.Events.UnityAction <float> >(L_YXQP, 3);
             WWWOperation QPYX_o_YXQP = WWWUtil.Post(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: WWWUtil.Post"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Esempio n. 2
0
    static int Post(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                UnityEngine.WWWForm arg1 = (UnityEngine.WWWForm)ToLua.CheckObject <UnityEngine.WWWForm>(L, 2);
                WWWOperation        o    = WWWUtil.Post(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3)
            {
                string arg0 = ToLua.CheckString(L, 1);
                UnityEngine.WWWForm arg1 = (UnityEngine.WWWForm)ToLua.CheckObject <UnityEngine.WWWForm>(L, 2);
                UnityEngine.Events.UnityAction <float> arg2 = (UnityEngine.Events.UnityAction <float>)ToLua.CheckDelegate <UnityEngine.Events.UnityAction <float> >(L, 3);
                WWWOperation o = WWWUtil.Post(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: WWWUtil.Post"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }