示例#1
0
        static int _s_set_svnVersion(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.svnVersion = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#2
0
        static int _g_get_channelName(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.channelName);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    GameChannel.ChannelManager gen_ret = new GameChannel.ChannelManager();
                    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 GameChannel.ChannelManager constructor!"));
        }
示例#4
0
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)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));
            }
        }
示例#5
0
        static int _m_IsGooglePlay(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);



                {
                    bool gen_ret = gen_to_be_invoked.IsGooglePlay(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



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


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.OnLoginOut(_msg);



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


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);



                {
                    bool _succeed = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.OnInstallGameFinished(_succeed);



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


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);



                {
                    int _progress = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.OnDownloadGameProgressValueChange(_progress);



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


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);



                {
                    System.Action _callback = translator.GetDelegate <System.Action>(L, 2);

                    gen_to_be_invoked.InitSDK(_callback);



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


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);



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

                    GameChannel.BaseChannel gen_ret = gen_to_be_invoked.CreateChannel(_channelName);
                    translator.Push(L, gen_ret);



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


                GameChannel.ChannelManager gen_to_be_invoked = (GameChannel.ChannelManager)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Action>(L, 3) && translator.Assignable <System.Action>(L, 4) && translator.Assignable <System.Action <int> >(L, 5) && (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING))
                {
                    string              _url      = LuaAPI.lua_tostring(L, 2);
                    System.Action       _succeed  = translator.GetDelegate <System.Action>(L, 3);
                    System.Action       _fail     = translator.GetDelegate <System.Action>(L, 4);
                    System.Action <int> _progress = translator.GetDelegate <System.Action <int> >(L, 5);
                    string              _saveName = LuaAPI.lua_tostring(L, 6);

                    gen_to_be_invoked.StartDownloadGame(_url, _succeed, _fail, _progress, _saveName);



                    return(0);
                }
                if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Action>(L, 3) && translator.Assignable <System.Action>(L, 4) && translator.Assignable <System.Action <int> >(L, 5))
                {
                    string              _url      = LuaAPI.lua_tostring(L, 2);
                    System.Action       _succeed  = translator.GetDelegate <System.Action>(L, 3);
                    System.Action       _fail     = translator.GetDelegate <System.Action>(L, 4);
                    System.Action <int> _progress = translator.GetDelegate <System.Action <int> >(L, 5);

                    gen_to_be_invoked.StartDownloadGame(_url, _succeed, _fail, _progress);



                    return(0);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Action>(L, 3) && translator.Assignable <System.Action>(L, 4))
                {
                    string        _url     = LuaAPI.lua_tostring(L, 2);
                    System.Action _succeed = translator.GetDelegate <System.Action>(L, 3);
                    System.Action _fail    = translator.GetDelegate <System.Action>(L, 4);

                    gen_to_be_invoked.StartDownloadGame(_url, _succeed, _fail);



                    return(0);
                }
                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <System.Action>(L, 3))
                {
                    string        _url     = LuaAPI.lua_tostring(L, 2);
                    System.Action _succeed = translator.GetDelegate <System.Action>(L, 3);

                    gen_to_be_invoked.StartDownloadGame(_url, _succeed);



                    return(0);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _url = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.StartDownloadGame(_url);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to GameChannel.ChannelManager.StartDownloadGame!"));
        }