> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFLobbyUpdatedStateChange

> Updated PlayFab 多人游戏状态变更详细信息，在大厅共享数据或成员数据被修改且客户端应刷新状态时引发。

*Updated* 类型状态变更的特定信息。

## 语法

```cpp theme={null}
struct PFLobbyUpdatedStateChange : PFLobbyStateChange {  
    PFLobbyHandle lobby;  
    bool ownerUpdated;  
    bool maxMembersUpdated;  
    bool accessPolicyUpdated;  
    bool membershipLockUpdated;  
    uint32_t updatedSearchPropertyCount;  
    const char* const* updatedSearchPropertyKeys;  
    uint32_t updatedLobbyPropertyCount;  
    const char* const* updatedLobbyPropertyKeys;  
    uint32_t memberUpdateCount;  
    const PFLobbyMemberUpdateSummary* memberUpdates;  
    bool serverUpdated;  
    uint32_t updatedServerPropertyCount;  
    const char* const* updatedServerPropertyKeys;  
    bool serverConnectionStatusUpdated;  
    bool restrictInvitesToLobbyOwnerUpdated;  
}  
```

### 成员

**`lobby`**   PFLobbyHandle\
*must not be null*

已更新的大厅。

**`ownerUpdated`**   bool

指示大厅所有者是否已更新的标志。

**`maxMembersUpdated`**   bool

指示大厅中允许的最大成员数是否已更新的标志。

**`accessPolicyUpdated`**   bool

指示大厅访问策略是否已更新的标志。

**`membershipLockUpdated`**   bool

指示大厅成员身份锁定是否已更新的标志。

**`updatedSearchPropertyCount`**   uint32\_t

已更新的搜索属性数量。

**`updatedSearchPropertyKeys`**   const char\* const\*\
*大小为 `updatedSearchPropertyCount` 的数组*

已更新的搜索属性的键。

**`updatedLobbyPropertyCount`**   uint32\_t

已更新的大厅属性数量。

**`updatedLobbyPropertyKeys`**   const char\* const\*\
*大小为 `updatedLobbyPropertyCount` 的数组*

已更新的大厅属性的键。

**`memberUpdateCount`**   uint32\_t

对大厅成员的更新数量。

**`memberUpdates`**   const [PFLobbyMemberUpdateSummary](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbymemberupdatesummary)\*\
*大小为 `memberUpdateCount` 的数组*

成员更新的集合。

**`serverUpdated`**   bool

指示客户端拥有的大厅所加入的服务器是否已更改的标志。

**`updatedServerPropertyCount`**   uint32\_t

对客户端拥有的大厅所加入服务器已更新的属性数量。

**`updatedServerPropertyKeys`**   const char\* const\*\
*大小为 `updatedServerPropertyCount` 的数组*

对客户端拥有的大厅所加入服务器已更新属性的键。

**`serverConnectionStatusUpdated`**   bool

指示大厅服务器的连接状态是否已更改的标志。

**`restrictInvitesToLobbyOwnerUpdated`**   bool

指示大厅将邀请限制为仅大厅所有者的策略是否已更改的标志。

## 备注

此状态变更表示大厅已更新，并提供关于哪些值已更改的提示。对 [PFMultiplayerStartProcessingLobbyStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges) 的一次调用可能会提供多个更新。这些更新反映的所有状态在调用 PFMultiplayerStartProcessingLobbyStateChanges() 时同时变得可用，因此可以单独或批量协调这些更新。

## 要求

**头文件：** PFLobby.h

## 另请参阅

[PFLobby 成员](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)
