コード例 #1
0
        static int _m_CreateStrangeData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint   uuid       = LuaAPI.xlua_touint(L, 2);
                    string name       = LuaAPI.lua_tostring(L, 3);
                    uint   level      = LuaAPI.xlua_touint(L, 4);
                    uint   roleId     = LuaAPI.xlua_touint(L, 5);
                    uint   teamId     = LuaAPI.xlua_touint(L, 6);
                    uint   honor      = LuaAPI.xlua_touint(L, 7);
                    uint   transferLv = LuaAPI.xlua_touint(L, 8);
                    uint   vipLv      = LuaAPI.xlua_touint(L, 9);

                    __cl_gen_to_be_invoked.CreateStrangeData(uuid, name, level, roleId, teamId, honor, transferLv, vipLv);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #2
0
        static int _g_get_ChangeTime(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.ChangeTime);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
コード例 #3
0
        static int _s_set_Applicants(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Applicants = (System.Collections.Generic.List <xc.FriendsInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <xc.FriendsInfo>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #4
0
        static int _s_set_isCD(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.isCD = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.FriendsManager __cl_gen_ret = new xc.FriendsManager();
                    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 xc.FriendsManager constructor!"));
        }
コード例 #6
0
        static int _m_SortFriends(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.SortFriends(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #7
0
        static int _m_IsCommonEmpty(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsCommonEmpty(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #8
0
        static int _m_CreateSelfFriendInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.FriendsInfo __cl_gen_ret = __cl_gen_to_be_invoked.CreateSelfFriendInfo(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #9
0
        static int _m_GetFriendListSortedByIntimacy(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.Generic.List <xc.FriendsInfo> __cl_gen_ret = __cl_gen_to_be_invoked.GetFriendListSortedByIntimacy(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #10
0
        static int _m_UpdateCloserLastChatTime(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint uuid = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.UpdateCloserLastChatTime(uuid);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #11
0
        static int _m_AddApplicant(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.FriendsInfo friendsInfo = (xc.FriendsInfo)translator.GetObject(L, 2, typeof(xc.FriendsInfo));

                    __cl_gen_to_be_invoked.AddApplicant(friendsInfo);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #12
0
        static int _m_Reset(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


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

                    __cl_gen_to_be_invoked.Reset(ignore_reconnect);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #13
0
        static int _m_Remove(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint uid = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.Remove(uid);



                    return(0);
                }
                if (__gen_param_count == 3 && translator.Assignable <xc.FriendType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    xc.FriendType type; translator.Get(L, 2, out type);
                    uint          uid = LuaAPI.xlua_touint(L, 3);

                    __cl_gen_to_be_invoked.Remove(type, uid);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.FriendsManager.Remove!"));
        }
コード例 #14
0
        static int _m_AreYouSingle(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint uuid = LuaAPI.xlua_touint(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.AreYouSingle(uuid);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #15
0
        static int _m_RemoveApplicant(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint uuid = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.RemoveApplicant(uuid);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <Net.PkgPlayerBrief>(L, 2))
                {
                    Net.PkgPlayerBrief pkgPlayerBrief = (Net.PkgPlayerBrief)translator.GetObject(L, 2, typeof(Net.PkgPlayerBrief));

                    __cl_gen_to_be_invoked.RemoveApplicant(pkgPlayerBrief);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.FriendsManager.RemoveApplicant!"));
        }
コード例 #16
0
        static int _m_AddFriend(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.FriendType  type; translator.Get(L, 2, out type);
                    xc.FriendsInfo friend = (xc.FriendsInfo)translator.GetObject(L, 3, typeof(xc.FriendsInfo));
                    bool           isInit = LuaAPI.lua_toboolean(L, 4);

                    __cl_gen_to_be_invoked.AddFriend(type, friend, isInit);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #17
0
        static int _m_GetFriend(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.FriendType type; translator.Get(L, 2, out type);
                    uint          uid = LuaAPI.xlua_touint(L, 3);

                    xc.FriendsInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetFriend(type, uid);
                    translator.Push(L, __cl_gen_ret);



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