PFLobbySearchResult

成功完成 PFMultiplayerFindLobbies 操作后收到的大厅搜索结果集合中的条目。

语法

struct PFLobbySearchResult {  
    const char* lobbyId;  
    const char* connectionString;  
    const PFEntityKey* ownerEntity;  
    uint32_t maxMemberCount;  
    uint32_t currentMemberCount;  
    uint32_t searchPropertyCount;  
    const char* const* searchPropertyKeys;  
    const char* const* searchPropertyValues;  
    uint32_t friendCount;  
    const PFEntityKey* friends;  
    PFLobbyMembershipLock membershipLock;  
}  

成员

lobbyId const char*
以 null 结尾

找到的大厅的 ID。

connectionString const char*
以 null 结尾

找到的大厅的连接字符串。

connectionString 可以为 null。 在这种情况下,需要邀请才能加入。

ownerEntity const PFEntityKey*
可能是 nullptr

大厅的当前所有者。

如果大厅当前没有所有者,则 ownerEntity 可能为 null。

maxMemberCount uint32_t

此大厅中可以存在的最大成员数。

currentMemberCount uint32_t

此大厅中的当前成员数。

searchPropertyCount uint32_t

与此大厅关联的搜索属性数。

searchPropertyKeys const char* const*
数组大小searchPropertyCount

与此大厅关联的搜索属性的键。

searchPropertyValues const char* const*
数组大小searchPropertyCount

与此大厅关联的搜索属性的值。

friendCount uint32_t

找到的大厅中好友的数目(如果大厅搜索是使用PFLobbySearchFriendsFilter执行)。

如果生成此搜索结果的大厅搜索未使用 PFLobbySearchFriendsFilter执行,则此值将始终为 0。

在某些多人游戏社交网络中,宿主是一种单向关系。 一个用户可以“关注”另一个用户或是其好友,但反向不一定同样如此。 仅当存在双向友好时,才会在此搜索结果中返回好友。 也就是说,查询大厅的用户和大厅中的用户必须是彼此的好友。

friends const PFEntityKey*
数组大小friendCount

找到的大厅中好友的列表(如果大厅搜索是使用PFLobbySearchFriendsFilter执行)。

如果生成此搜索结果的大厅搜索不是使用PFLobbySearchFriendsFilter执行,则此列表将始终为空。

在某些多人游戏社交网络中,宿主是一种单向关系。 一个用户可以“关注”另一个用户或是其好友,但反向不一定同样如此。 仅当存在双向友好时,才会在此搜索结果中返回好友。 也就是说,查询大厅的用户和大厅中的用户必须是彼此的好友。

membershipLockPFLobbyMembershipLock

找到的大厅的当前锁定状态。

要求

标头: PFLobby.h

另请参阅

PFLobby 成员