Esempio n. 1
0
        static int _s_set_tcs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.tcs = (DCET.Model.ETTaskCompletionSource)translator.GetObject(L, 2, typeof(DCET.Model.ETTaskCompletionSource));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 2
0
        static int _s_set_isCancel(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.isCancel = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 3
0
        static int _s_set_Request(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Request = (UnityEngine.Networking.UnityWebRequest)translator.GetObject(L, 2, typeof(UnityEngine.Networking.UnityWebRequest));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 4
0
        static int _g_get_tcs(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.tcs);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Esempio n. 5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.UnityWebRequestAsync gen_ret = new DCET.Model.UnityWebRequestAsync();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.UnityWebRequestAsync constructor!"));
        }
Esempio n. 6
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 7
0
        static int _m_Update(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.UnityWebRequestUpdateSystem gen_to_be_invoked = (DCET.Model.UnityWebRequestUpdateSystem)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.UnityWebRequestAsync _self = (DCET.Model.UnityWebRequestAsync)translator.GetObject(L, 2, typeof(DCET.Model.UnityWebRequestAsync));

                    gen_to_be_invoked.Update(_self);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 8
0
        static int _m_DownloadAsync(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.UnityWebRequestAsync gen_to_be_invoked = (DCET.Model.UnityWebRequestAsync)translator.FastGetCSObj(L, 1);



                {
                    string _url = LuaAPI.lua_tostring(L, 2);

                    DCET.Model.ETTask gen_ret = gen_to_be_invoked.DownloadAsync(_url);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }