Esempio n. 1
0
 static int QPYX_Dispose_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.Networking.DownloadHandler QPYX_obj_YXQP = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L_YXQP, 1);
         QPYX_obj_YXQP.Dispose();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static int Dispose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Networking.DownloadHandler obj = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L, 1);
         obj.Dispose();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int QPYX_get_downloadHandler_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.DownloadHandler QPYX_ret_YXQP = QPYX_obj_YXQP.downloadHandler;
            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 downloadHandler on a nil value"));
        }
    }
    static int QPYX_set_downloadHandler_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.DownloadHandler QPYX_arg0_YXQP = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L_YXQP, 2);
            QPYX_obj_YXQP.downloadHandler = 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 downloadHandler 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));
        }
    }
    static int get_text(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.DownloadHandler obj = (UnityEngine.Networking.DownloadHandler)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"));
        }
    }
    static int get_isDone(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.DownloadHandler obj = (UnityEngine.Networking.DownloadHandler)o;
            bool ret = obj.isDone;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isDone on a nil value"));
        }
    }
    static int get_downloadHandler(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Networking.UnityWebRequest obj  = (UnityEngine.Networking.UnityWebRequest)o;
            UnityEngine.Networking.DownloadHandler arg0 = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L, 2);
            obj.downloadHandler = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index downloadHandler 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));
     }
 }
Esempio n. 12
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();
         }
     }
 }
Esempio n. 13
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();
                }
            }
        }
 public static MovieTexture GetContent(UnityWebRequest uwr)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerMovieTexture>(uwr).movieTexture);
 }
 protected override byte[] GetData()
 {
     return(DownloadHandler.InternalGetByteArray(this));
 }
 internal extern static byte[] InternalGetByteArray(DownloadHandler dh);
 public static AudioClip GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerAudioClip>(www).audioClip);
 }
Esempio n. 19
0
 internal static extern MovieTexture InternalCreateMovieTextureUsingDH(DownloadHandler dh);
Esempio n. 20
0
 internal static extern AudioClip InternalCreateAudioClipUsingDH(DownloadHandler dh, string url, bool stream, bool compressed, AudioType audioType);
Esempio n. 21
0
    static int QPYX_get_text_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.Networking.DownloadHandler QPYX_obj_YXQP = (UnityEngine.Networking.DownloadHandler)QPYX_o_YXQP;
            string QPYX_ret_YXQP = QPYX_obj_YXQP.text;
            LuaDLL.lua_pushstring(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 text on a nil value"));
        }
    }
Esempio n. 22
0
 private static extern void INTERNAL_CALL_InternalCreateAssetBundle(DownloadHandler self, string url, ref Hash128 hash, uint crc);
Esempio n. 23
0
 internal void InternalCreateAssetBundle(string url, Hash128 hash, uint crc)
 {
     DownloadHandler.INTERNAL_CALL_InternalCreateAssetBundle(this, url, ref hash, crc);
 }
 private byte[] InternalGetData()
 {
     return(DownloadHandler.InternalGetByteArray(this));
 }
Esempio n. 25
0
 public static Texture2D GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerTexture>(www).texture);
 }
 private extern UnityWebRequestError SetDownloadHandler(DownloadHandler dh);
Esempio n. 27
0
 public static AssetBundle GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerAssetBundle>(www).assetBundle);
 }
    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));
        }
    }
Esempio n. 29
0
 //
 // Static Methods
 //
 public static string GetContent(UnityWebRequest www)
 {
     return(DownloadHandler.GetCheckedDownloader <DownloadHandlerBuffer> (www).text);
 }