コード例 #1
0
        //-------------------------------------------------------------------------
        public PlayerInfoFriend getFriendPlayerInfoFriend(string friend_etguid)
        {
            PlayerInfoFriend player_info_friend = null;

            MapFriendInfo.TryGetValue(friend_etguid, out player_info_friend);
            return(player_info_friend);
        }
コード例 #2
0
        //---------------------------------------------------------------------
        // 根据玩家Guid获取指定玩家信息
        async Task<PlayerInfoFriend> ICellPlayerService.getPlayerInfoFriend(string et_player_guid)
        {
            string query = string.Format(@"SELECT {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10} FROM Fishing
               WHERE entity_type='EtPlayer' and {11}=$1 LIMIT 1;"
               , "entity_guid"
               , "list_component[0].def_propset.ActorId"
               , "list_component[0].def_propset.NickName"
               , "list_component[0].def_propset.Level"
               , "list_component[0].def_propset.Experience"
               , "list_component[0].def_propset.Icon"
               , "list_component[0].def_propset.IpAddress"
               , "list_component[0].def_propset.IndividualSignature"
               , "list_component[0].def_propset.Chip"
               , "list_component[0].def_propset.Gold"
               , "list_component[0].def_propset.ProfileSkinTableId"
               , "entity_guid");

            PlayerInfoFriend player_info_ex = new PlayerInfoFriend();
            return player_info_ex;
        }
コード例 #3
0
        //---------------------------------------------------------------------
        // 根据玩家Guid获取指定玩家信息
        async Task <PlayerInfoFriend> ICellPlayerService.getPlayerInfoFriend(string et_player_guid)
        {
            string query = string.Format(@"SELECT {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10} FROM Fishing
               WHERE entity_type='EtPlayer' and {11}=$1 LIMIT 1;"
                                         , "entity_guid"
                                         , "list_component[0].def_propset.ActorId"
                                         , "list_component[0].def_propset.NickName"
                                         , "list_component[0].def_propset.Level"
                                         , "list_component[0].def_propset.Experience"
                                         , "list_component[0].def_propset.Icon"
                                         , "list_component[0].def_propset.IpAddress"
                                         , "list_component[0].def_propset.IndividualSignature"
                                         , "list_component[0].def_propset.Chip"
                                         , "list_component[0].def_propset.Gold"
                                         , "list_component[0].def_propset.ProfileSkinTableId"
                                         , "entity_guid");

            PlayerInfoFriend player_info_ex = new PlayerInfoFriend();

            return(player_info_ex);
        }