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

                DCETRuntime.VersionConfig gen_to_be_invoked = (DCETRuntime.VersionConfig)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.FileInfoDict = (System.Collections.Generic.Dictionary <string, DCETRuntime.FileVersionInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, DCETRuntime.FileVersionInfo>));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #2
0
        static int _s_set_TotalSize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCETRuntime.VersionConfig gen_to_be_invoked = (DCETRuntime.VersionConfig)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.TotalSize = LuaAPI.lua_toint64(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemple #3
0
        static int _g_get_FileInfoDict(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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


                DCETRuntime.VersionConfig gen_to_be_invoked = (DCETRuntime.VersionConfig)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.EndInit(  );



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



                {
                    DCETRuntime.VersionConfig _streamingVersionConfig = (DCETRuntime.VersionConfig)translator.GetObject(L, 1, typeof(DCETRuntime.VersionConfig));
                    string _bundleName = LuaAPI.lua_tostring(L, 2);

                    string gen_ret = DCETRuntime.BundleDownloader.GetBundleMD5(
                        _streamingVersionConfig,
                        _bundleName);
                    LuaAPI.lua_pushstring(L, gen_ret);



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