PFMultiplayerFindLobbies

代表本地用户搜索大厅。

语法

HRESULT PFMultiplayerFindLobbies(  
    PFMultiplayerHandle handle,  
    const PFEntityKey* searchingEntity,  
    const PFLobbySearchConfiguration* searchConfiguration,  
    void* asyncContext  
)  

参数

handle PFMultiplayerHandle

PFMultiplayer API 实例的句柄。

searchingEntityPFEntityKey*

执行搜索的 PlayFab 实体。

searchConfigurationPFLobbySearchConfiguration*

用于筛选和分类搜索到的大厅的配置。

asyncContext void*
可选

一个可选应用定义的指针大小的上下文值,可用于将完成状态更改与此调用关联起来。

返回值

类型:HRESULT

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

备注

这是异步操作。 完成成功后,将向游戏提供 PFLobbyFindLobbiesCompletedStateChangePFLobbyFindLobbiesCompletedStateChange::result 字段设置为 S_OK。 完成失败后,将向游戏提供 PFLobbyFindLobbiesCompletedStateChangePFLobbyFindLobbiesCompletedStateChange::result 字段设置为失败。

要求

标头: PFLobby.h

另请参阅

PFLobby 成员