Beispiel #1
0
        static int _g_get_IsSys(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsInfo __cl_gen_to_be_invoked = (xc.FriendsInfo)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsSys);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Beispiel #2
0
        static int _s_set_Intimacy(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsInfo __cl_gen_to_be_invoked = (xc.FriendsInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Intimacy = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #3
0
        static int _g_get_EnemyPos(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsInfo __cl_gen_to_be_invoked = (xc.FriendsInfo)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector3(L, __cl_gen_to_be_invoked.EnemyPos);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Beispiel #4
0
        static int _s_set_EnemyInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsInfo __cl_gen_to_be_invoked = (xc.FriendsInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.EnemyInfo = (Net.PkgNwarPos)translator.GetObject(L, 2, typeof(Net.PkgNwarPos));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #5
0
        static int _s_set_EnemyPos(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.FriendsInfo      __cl_gen_to_be_invoked = (xc.FriendsInfo)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.EnemyPos = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(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));
            }
        }
        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));
            }
        }
Beispiel #8
0
        static int _m_UpdateOnlineState(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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

                    __cl_gen_to_be_invoked.UpdateOnlineState(online);



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


            xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)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.DeleteFriend(uid);



                    return(0);
                }
                if (__gen_param_count == 3 && translator.Assignable <xc.FriendType>(L, 2) && translator.Assignable <xc.FriendsInfo>(L, 3))
                {
                    xc.FriendType  friendType; translator.Get(L, 2, out friendType);
                    xc.FriendsInfo friendInfo = (xc.FriendsInfo)translator.GetObject(L, 3, typeof(xc.FriendsInfo));

                    __cl_gen_to_be_invoked.DeleteFriend(friendType, friendInfo);



                    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.FriendsNet.DeleteFriend!"));
        }
        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));
            }
        }
        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));
            }
        }
Beispiel #12
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 14 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 14))
                {
                    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);
                    bool   online       = LuaAPI.lua_toboolean(L, 6);
                    uint   teamId       = LuaAPI.xlua_touint(L, 7);
                    uint   honor        = LuaAPI.xlua_touint(L, 8);
                    uint   transferLv   = LuaAPI.xlua_touint(L, 9);
                    uint   vipLv        = LuaAPI.xlua_touint(L, 10);
                    uint   mateUUID     = LuaAPI.xlua_touint(L, 11);
                    string mateName     = LuaAPI.lua_tostring(L, 12);
                    uint   BubbleId     = LuaAPI.xlua_touint(L, 13);
                    uint   PhotoFrameId = LuaAPI.xlua_touint(L, 14);

                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName, BubbleId, PhotoFrameId);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 13 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13))
                {
                    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);
                    bool   online     = LuaAPI.lua_toboolean(L, 6);
                    uint   teamId     = LuaAPI.xlua_touint(L, 7);
                    uint   honor      = LuaAPI.xlua_touint(L, 8);
                    uint   transferLv = LuaAPI.xlua_touint(L, 9);
                    uint   vipLv      = LuaAPI.xlua_touint(L, 10);
                    uint   mateUUID   = LuaAPI.xlua_touint(L, 11);
                    string mateName   = LuaAPI.lua_tostring(L, 12);
                    uint   BubbleId   = LuaAPI.xlua_touint(L, 13);

                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName, BubbleId);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 12 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING))
                {
                    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);
                    bool   online     = LuaAPI.lua_toboolean(L, 6);
                    uint   teamId     = LuaAPI.xlua_touint(L, 7);
                    uint   honor      = LuaAPI.xlua_touint(L, 8);
                    uint   transferLv = LuaAPI.xlua_touint(L, 9);
                    uint   vipLv      = LuaAPI.xlua_touint(L, 10);
                    uint   mateUUID   = LuaAPI.xlua_touint(L, 11);
                    string mateName   = LuaAPI.lua_tostring(L, 12);

                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 11 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11))
                {
                    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);
                    bool   online     = LuaAPI.lua_toboolean(L, 6);
                    uint   teamId     = LuaAPI.xlua_touint(L, 7);
                    uint   honor      = LuaAPI.xlua_touint(L, 8);
                    uint   transferLv = LuaAPI.xlua_touint(L, 9);
                    uint   vipLv      = LuaAPI.xlua_touint(L, 10);
                    uint   mateUUID   = LuaAPI.xlua_touint(L, 11);

                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 10 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10))
                {
                    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);
                    bool   online     = LuaAPI.lua_toboolean(L, 6);
                    uint   teamId     = LuaAPI.xlua_touint(L, 7);
                    uint   honor      = LuaAPI.xlua_touint(L, 8);
                    uint   transferLv = LuaAPI.xlua_touint(L, 9);
                    uint   vipLv      = LuaAPI.xlua_touint(L, 10);

                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Net.PkgPlayerBrief>(L, 2))
                {
                    Net.PkgPlayerBrief player_brief = (Net.PkgPlayerBrief)translator.GetObject(L, 2, typeof(Net.PkgPlayerBrief));

                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(player_brief);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo();
                    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.FriendsInfo constructor!"));
        }