Exemplo n.º 1
0
 static int QPYX_Dispose_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.Networking.UploadHandler QPYX_obj_YXQP = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L_YXQP, 1);
         QPYX_obj_YXQP.Dispose();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 2
0
 static int Dispose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Networking.UploadHandler obj = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L, 1);
         obj.Dispose();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int QPYX_get_uploadHandler_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = (UnityEngine.Networking.UnityWebRequest)QPYX_o_YXQP;
            UnityEngine.Networking.UploadHandler QPYX_ret_YXQP = QPYX_obj_YXQP.uploadHandler;
            ToLua.PushObject(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index uploadHandler on a nil value"));
        }
    }
    static int QPYX_set_uploadHandler_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = (UnityEngine.Networking.UnityWebRequest)QPYX_o_YXQP;
            UnityEngine.Networking.UploadHandler QPYX_arg0_YXQP = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L_YXQP, 2);
            QPYX_obj_YXQP.uploadHandler = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index uploadHandler on a nil value"));
        }
    }
    static int _CreateUnityEngine_Networking_UnityWebRequest(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest();
                ToLua.PushSealed(L, obj);
                return(1);
            }
            else if (count == 1)
            {
                string arg0 = ToLua.CheckString(L, 1);
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest(arg0);
                ToLua.PushSealed(L, obj);
                return(1);
            }
            else if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest(arg0, arg1);
                ToLua.PushSealed(L, obj);
                return(1);
            }
            else if (count == 4)
            {
                string arg0 = ToLua.CheckString(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                UnityEngine.Networking.DownloadHandler arg2 = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L, 3);
                UnityEngine.Networking.UploadHandler   arg3 = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L, 4);
                UnityEngine.Networking.UnityWebRequest obj  = new UnityEngine.Networking.UnityWebRequest(arg0, arg1, arg2, arg3);
                ToLua.PushSealed(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Networking.UnityWebRequest.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 6
0
    static int get_contentType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UploadHandler obj = (UnityEngine.Networking.UploadHandler)o;
            string ret = obj.contentType;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index contentType on a nil value"));
        }
    }
    static int get_uploadHandler(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UnityWebRequest obj = (UnityEngine.Networking.UnityWebRequest)o;
            UnityEngine.Networking.UploadHandler   ret = obj.uploadHandler;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index uploadHandler on a nil value"));
        }
    }
    static int set_uploadHandler(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UnityWebRequest obj  = (UnityEngine.Networking.UnityWebRequest)o;
            UnityEngine.Networking.UploadHandler   arg0 = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L, 2);
            obj.uploadHandler = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index uploadHandler on a nil value"));
        }
    }
Exemplo n.º 9
0
    static int set_contentType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UploadHandler obj = (UnityEngine.Networking.UploadHandler)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.contentType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index contentType on a nil value"));
        }
    }
Exemplo n.º 10
0
    static int get_data(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UploadHandler obj = (UnityEngine.Networking.UploadHandler)o;
            byte[] ret = obj.data;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index data on a nil value"));
        }
    }
Exemplo n.º 11
0
    static int get_progress(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UploadHandler obj = (UnityEngine.Networking.UploadHandler)o;
            float ret = obj.progress;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index progress on a nil value"));
        }
    }
 static int QPYX__CreateUnityEngine_Networking_UnityWebRequest_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 0)
         {
             UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = new UnityEngine.Networking.UnityWebRequest();
             ToLua.PushObject(L_YXQP, QPYX_obj_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 1)
         {
             string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
             UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = new UnityEngine.Networking.UnityWebRequest(QPYX_arg0_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_obj_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 2)
         {
             string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
             string QPYX_arg1_YXQP = ToLua.CheckString(L_YXQP, 2);
             UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = new UnityEngine.Networking.UnityWebRequest(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_obj_YXQP);
             return(1);
         }
         else if (QPYX_count_YXQP == 4)
         {
             string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 1);
             string QPYX_arg1_YXQP = ToLua.CheckString(L_YXQP, 2);
             UnityEngine.Networking.DownloadHandler QPYX_arg2_YXQP = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L_YXQP, 3);
             UnityEngine.Networking.UploadHandler   QPYX_arg3_YXQP = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L_YXQP, 4);
             UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP  = new UnityEngine.Networking.UnityWebRequest(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP);
             ToLua.PushObject(L_YXQP, QPYX_obj_YXQP);
             return(1);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to ctor method: UnityEngine.Networking.UnityWebRequest.New"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 13
0
 private void DisposeHandlers()
 {
     if (this.disposeDownloadHandlerOnDispose)
     {
         DownloadHandler downloadHandler = this.GetDownloadHandler();
         if (downloadHandler != null)
         {
             downloadHandler.Dispose();
         }
     }
     if (this.disposeUploadHandlerOnDispose)
     {
         UploadHandler uploadHandler = this.GetUploadHandler();
         if (uploadHandler != null)
         {
             uploadHandler.Dispose();
         }
     }
 }
Exemplo n.º 14
0
 public void Dispose()
 {
     if (this.disposeDownloadHandlerOnDispose)
     {
         DownloadHandler downloadHandler = this.downloadHandler;
         if (downloadHandler != null)
         {
             downloadHandler.Dispose();
         }
     }
     if (this.disposeUploadHandlerOnDispose)
     {
         UploadHandler uploadHandler = this.uploadHandler;
         if (uploadHandler != null)
         {
             uploadHandler.Dispose();
         }
     }
     this.InternalDestroy();
     GC.SuppressFinalize(this);
 }
        private void DisposeHandlers()
        {
            bool disposeDownloadHandlerOnDispose = this.disposeDownloadHandlerOnDispose;

            if (disposeDownloadHandlerOnDispose)
            {
                DownloadHandler downloadHandler = this.downloadHandler;
                bool            flag            = downloadHandler != null;
                if (flag)
                {
                    downloadHandler.Dispose();
                }
            }
            bool disposeUploadHandlerOnDispose = this.disposeUploadHandlerOnDispose;

            if (disposeUploadHandlerOnDispose)
            {
                UploadHandler uploadHandler = this.uploadHandler;
                bool          flag2         = uploadHandler != null;
                if (flag2)
                {
                    uploadHandler.Dispose();
                }
            }
            bool disposeCertificateHandlerOnDispose = this.disposeCertificateHandlerOnDispose;

            if (disposeCertificateHandlerOnDispose)
            {
                CertificateHandler certificateHandler = this.certificateHandler;
                bool flag3 = certificateHandler != null;
                if (flag3)
                {
                    certificateHandler.Dispose();
                }
            }
        }
    static int _CreateUnityEngine_Networking_UnityWebRequest(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 1 && TypeChecker.CheckTypes <string>(L, 1))
            {
                string arg0 = ToLua.ToString(L, 1);
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest(arg0);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 1 && TypeChecker.CheckTypes <System.Uri>(L, 1))
            {
                System.Uri arg0 = (System.Uri)ToLua.ToObject(L, 1);
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest(arg0);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <string, string>(L, 1))
            {
                string arg0 = ToLua.ToString(L, 1);
                string arg1 = ToLua.ToString(L, 2);
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <System.Uri, string>(L, 1))
            {
                System.Uri arg0 = (System.Uri)ToLua.ToObject(L, 1);
                string     arg1 = ToLua.ToString(L, 2);
                UnityEngine.Networking.UnityWebRequest obj = new UnityEngine.Networking.UnityWebRequest(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <string, string, UnityEngine.Networking.DownloadHandler, UnityEngine.Networking.UploadHandler>(L, 1))
            {
                string arg0 = ToLua.ToString(L, 1);
                string arg1 = ToLua.ToString(L, 2);
                UnityEngine.Networking.DownloadHandler arg2 = (UnityEngine.Networking.DownloadHandler)ToLua.ToObject(L, 3);
                UnityEngine.Networking.UploadHandler   arg3 = (UnityEngine.Networking.UploadHandler)ToLua.ToObject(L, 4);
                UnityEngine.Networking.UnityWebRequest obj  = new UnityEngine.Networking.UnityWebRequest(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <System.Uri, string, UnityEngine.Networking.DownloadHandler, UnityEngine.Networking.UploadHandler>(L, 1))
            {
                System.Uri arg0 = (System.Uri)ToLua.ToObject(L, 1);
                string     arg1 = ToLua.ToString(L, 2);
                UnityEngine.Networking.DownloadHandler arg2 = (UnityEngine.Networking.DownloadHandler)ToLua.ToObject(L, 3);
                UnityEngine.Networking.UploadHandler   arg3 = (UnityEngine.Networking.UploadHandler)ToLua.ToObject(L, 4);
                UnityEngine.Networking.UnityWebRequest obj  = new UnityEngine.Networking.UnityWebRequest(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Networking.UnityWebRequest.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 17
0
        public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
        {
            this.InternalCreate();
            this.InternalSetDefaults();
            this.url    = url;
            this.method = method;

            /*this.downloadHandler = downloadHandler;
             * this.uploadHandler = uploadHandler;*/
        }
 private extern UnityWebRequestError SetUploadHandler(UploadHandler uh);
 public UnityWebRequest(Uri uri, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
 {
     m_Ptr = Create();
     InternalSetDefaults();
     this.uri             = uri;
     this.method          = method;
     this.downloadHandler = downloadHandler;
     this.uploadHandler   = uploadHandler;
 }
Exemplo n.º 20
0
    static int QPYX_set_contentType_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.Networking.UploadHandler QPYX_obj_YXQP = (UnityEngine.Networking.UploadHandler)QPYX_o_YXQP;
            string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2);
            QPYX_obj_YXQP.contentType = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index contentType on a nil value"));
        }
    }
Exemplo n.º 21
0
    static int QPYX_get_progress_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.Networking.UploadHandler QPYX_obj_YXQP = (UnityEngine.Networking.UploadHandler)QPYX_o_YXQP;
            float QPYX_ret_YXQP = QPYX_obj_YXQP.progress;
            LuaDLL.lua_pushnumber(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index progress on a nil value"));
        }
    }
Exemplo n.º 22
0
    static int QPYX_get_data_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.Networking.UploadHandler QPYX_obj_YXQP = (UnityEngine.Networking.UploadHandler)QPYX_o_YXQP;
            byte[] QPYX_ret_YXQP = QPYX_obj_YXQP.data;
            ToLua.Push(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index data on a nil value"));
        }
    }