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


                CentralServer.Match.BattleStaging __cl_gen_to_be_invoked = (CentralServer.Match.BattleStaging)translator.FastGetCSObj(L, 1);



                {
                    uint lid = LuaAPI.xlua_touint(L, 2);
                    uint bid = LuaAPI.xlua_touint(L, 3);

                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetNumUsersByLBID(lid, bid);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    CentralServer.Match.BattleStaging __cl_gen_ret = new CentralServer.Match.BattleStaging();
                    translator.Push(L, __cl_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 CentralServer.Match.BattleStaging constructor!"));
        }
Esempio n. 3
0
        static int _m_ListALLLIDToBID(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                CentralServer.Match.BattleStaging __cl_gen_to_be_invoked = (CentralServer.Match.BattleStaging)translator.FastGetCSObj(L, 1);



                {
                    string __cl_gen_ret = __cl_gen_to_be_invoked.ListALLLIDToBID(  );
                    LuaAPI.lua_pushstring(L, __cl_gen_ret);



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


                CentralServer.Match.BattleStaging __cl_gen_to_be_invoked = (CentralServer.Match.BattleStaging)translator.FastGetCSObj(L, 1);



                {
                    uint lid = LuaAPI.xlua_touint(L, 2);
                    uint bid = LuaAPI.xlua_touint(L, 3);

                    __cl_gen_to_be_invoked.OnBattleDestory(lid, bid);



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


                CentralServer.Match.BattleStaging __cl_gen_to_be_invoked = (CentralServer.Match.BattleStaging)translator.FastGetCSObj(L, 1);



                {
                    ulong bsgcNID = LuaAPI.lua_touint64(L, 2);

                    CentralServer.User.CSUser __cl_gen_ret = __cl_gen_to_be_invoked.GetUser(bsgcNID);
                    translator.Push(L, __cl_gen_ret);



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