语法
参数
lobby PFLobbyHandle
大厅的句柄。
owner PFEntityKey**library-allocated output, may return nullptr 输出的所有者。当所有者迁移策略为 PFLobbyOwnerMigrationPolicy::Manual 或 PFLobbyOwnerMigrationPolicy::None 时,如果所有者已离开或断开与大厅的连接,则此值可能为 null。
返回值
类型:HRESULT 如果调用成功,则为S_OK;否则为错误代码。可通过 PFMultiplayerGetErrorMessage() 检索错误代码的可读形式。
备注
如果此大厅对象是通过调用 PFMultiplayerJoinLobby() 创建的,则此方法将返回错误,直到 PFMultiplayerStartProcessingLobbyStateChanges() 提供一个 PFLobbyUpdatedStateChange,其中 PFLobbyUpdatedStateChange::ownerUpdated 设置为 true。如果加入大厅成功,则可以保证在 PFMultiplayerStartProcessingLobbyStateChanges() 提供 PFLobbyJoinLobbyCompletedStateChange 时,此字段已被填充。如果此大厅对象是通过调用 PFMultiplayerClaimServerLobby() 创建的,则此方法将返回错误,直到 PFMultiplayerStartProcessingLobbyStateChanges() 提供一个 PFLobbyUpdatedStateChange,其中 PFLobbyUpdatedStateChange::ownerUpdated 设置为 true。如果领取大厅成功,则可以保证在 PFMultiplayerStartProcessingLobbyStateChanges() 提供 PFLobbyClaimServerLobbyCompletedStateChange 时,此字段已被填充。
