Example #1
0
        static int _s_set_webRequest(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

                DCET.Model.BundleDownloaderComponent gen_to_be_invoked = (DCET.Model.BundleDownloaderComponent)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.downloadingBundle = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #3
0
        static int _s_set_downloadedBundles(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.BundleDownloaderComponent gen_to_be_invoked = (DCET.Model.BundleDownloaderComponent)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.downloadedBundles = (System.Collections.Generic.HashSet <string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.HashSet <string>));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #4
0
        static int _g_get_webRequest(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.BundleDownloaderComponent gen_to_be_invoked = (DCET.Model.BundleDownloaderComponent)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.webRequest);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Example #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.BundleDownloaderComponent gen_ret = new DCET.Model.BundleDownloaderComponent();
                    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.BundleDownloaderComponent constructor!"));
        }
Example #6
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.BundleDownloaderComponent gen_to_be_invoked = (DCET.Model.BundleDownloaderComponent)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));
            }
        }
Example #7
0
        static int _m_StartAsync(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    DCET.Model.ETTask gen_ret = gen_to_be_invoked.StartAsync(  );
                    translator.Push(L, gen_ret);



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


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



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

                    gen_to_be_invoked.Awake(_self);



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