Skip to main content
获取当前作为成员加入大厅的 PlayFab 实体列表。

语法

参数

lobby   PFLobbyHandle 大厅的句柄。 memberCount   uint32_t*
output
输出的成员计数。 members   PFEntityKey**
library-allocated output array of size *memberCount
输出的成员数组。

返回值

类型:HRESULT 如果调用成功,则为 S_OK;否则为错误代码。可通过 PFMultiplayerGetErrorMessage() 检索错误代码的可读形式。

备注

如果此大厅对象仍处于通过调用 PFMultiplayerCreateAndJoinLobby()PFMultiplayerJoinLobby()PFMultiplayerCreateAndClaimServerLobby()PFMultiplayerClaimServerLobby() 异步创建、加入或领取的过程中,则此方法将不返回任何成员。

如果此大厅由服务器拥有,则拥有它的 game_server 实体不会出现在此成员列表中。

要求

头文件: PFLobby.h

另请参阅

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