> ## 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.

# PFLobbyStateChange

> 由 PlayFab 多人游戏大厅库传递的、表示事件或状态变更的通用基础结构，用于分派特定的派生变更。

大厅库中事件或状态变更的通用基础结构表示。

## 语法

```cpp theme={null}
struct PFLobbyStateChange {  
    PFLobbyStateChangeType stateChangeType;  
}  
```

### 成员

**`stateChangeType`**   [PFLobbyStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype)

所表示状态变更的具体类型。

使用此字段来确定此 PFLobbyStateChange 结构标头所表示的对应派生结构。

## 备注

PFLobbyStateChange 结构由 [PFMultiplayerStartProcessingLobbyStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges) 报告，供 title 处理，然后通过 [PFMultiplayerFinishProcessingLobbyStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerfinishprocessinglobbystatechanges) 方法及时传回。<br /><br /> `stateChangeType` 字段指示发生了哪种状态变更，然后应将此基础结构强制转换为更具体的派生结构，以检索其他特定于事件的信息。

## 要求

**头文件：** PFLobby.h

## 另请参阅

[PFLobby 成员](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)\
[PFMultiplayerStartProcessingLobbyStateChanges](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges)\
[PFMultiplayerFinishProcessingLobbyStateChanges](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerfinishprocessinglobbystatechanges)
