Skip to main content
PFMultiplayerFindLobbies 操作成功完成后收到的大厅搜索结果集合中的一项。

语法

成员

lobbyId   const char*
is null-terminated
找到的大厅的 ID。 connectionString   const char*
is null-terminated
找到的大厅的连接字符串。 connectionString 可以为 null。在这种情况下,需要邀请才能加入。 ownerEntity   const PFEntityKey*
may be 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 执行,则此列表将始终为空。

在某些多人游戏社交网络中,好友关系是单向的。一个用户可能”关注”另一个用户或成为其好友,但反向关系不一定成立。仅当存在双向好友关系时,好友才会在此搜索结果中返回。也就是说,查询大厅的用户和大厅中的用户必须彼此互为好友。
membershipLock   PFLobbyMembershipLock 找到的大厅的当前锁定状态。

要求

头文件: PFLobby.h

另请参阅

PFLobby 成员
最后修改于 2026年8月13日