Skip to main content
根据键获取大厅属性值。

语法

参数

lobby   PFLobbyHandle 大厅的句柄。 key   char*
is null-terminated
属性的键。 value   char**
library-allocated output, may return nullptr
与键关联的输出值。输出为 null 值表示该属性不存在。

返回值

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

备注

大厅属性仅对大厅成员可见。

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

要求

头文件: PFLobby.h

另请参阅

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