static int _g_get_CurStepProgress(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                HotPatchManager gen_to_be_invoked = (HotPatchManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CurStepProgress);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _s_set_State(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                HotPatchManager gen_to_be_invoked = (HotPatchManager)translator.FastGetCSObj(L, 1);
                PackageState    gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.State = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    HotPatchManager gen_ret = new HotPatchManager();
                    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 HotPatchManager constructor!"));
        }
        static int _m_CheckVersion(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                HotPatchManager gen_to_be_invoked = (HotPatchManager)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.CheckVersion(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #5
0
    private void Awake()
    {
        // 配置
        GeneralConfig.Init();
        // 控制台
        Console.Init();
        // AB工具
        ABUtility.Init();
        Instance = this;
        Assert.raiseExceptions = true;
        DontDestroyOnLoad(gameObject);
        m_Mgrs        = new List <IManager>();
        m_CallMgr     = new CallManager();
        m_ObjectMgr   = new ObjectManager();
        m_ABMgr       = new ABManager();
        m_HotPatchMgr = new HotPatchManager();
        m_LuaMgr      = new LuaManager();
        m_ResMgr      = new ResourceManager();
        m_CutSceneMgr = new CutSceneManager();
        m_UIMgr       = new UIManager();
        m_Mgrs.Add(m_CallMgr);
        m_Mgrs.Add(m_ABMgr);
        m_Mgrs.Add(m_LuaMgr);
        m_Mgrs.Add(m_CutSceneMgr);
        m_Mgrs.Add(m_ResMgr);
        m_Mgrs.Add(m_ObjectMgr);
        m_Mgrs.Add(m_UIMgr);
        m_Mgrs.Add(m_HotPatchMgr);

        var iter = m_Mgrs.GetEnumerator();

        while (iter.MoveNext())
        {
            iter.Current.Awake();
        }
    }