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

# PFMatchmakingStateChange

> 代表 PlayFab Multiplayer Matchmaking 程式庫所傳遞之事件或狀態變更的一般基底結構，會分派至特定的衍生類型。

Matchmaking 程式庫中事件或狀態變更的一般基底結構表示法。

## 語法

```cpp theme={null}
struct PFMatchmakingStateChange {  
    PFMatchmakingStateChangeType stateChangeType;  
}  
```

### 成員

**`stateChangeType`**   [PFMatchmakingStateChangeType](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingstatechangetype.md)

所代表之狀態變更的特定類型。

使用此欄位判斷此 PFMatchmakingStateChange 結構標頭代表哪個對應的衍生結構。

## 備註

PFMatchmakingStateChange 結構由 [PFMultiplayerStartProcessingMatchmakingStateChanges()](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges.md) 回報，供遊戲處理後再透過 [PFMultiplayerFinishProcessingMatchmakingStateChanges()](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges.md) 方法迅速傳回。\
\
&#x20;`stateChangeType` 欄位表示發生了哪種狀態變更，接著應將此基底結構轉換為更具體的衍生結構，以擷取其他事件專屬資訊。

## 需求

**標頭：** PFMatchmaking.h

## 另請參閱

[PFMatchmaking 成員](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)\
[PFMultiplayerStartProcessingMatchmakingStateChanges](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges.md)\
[PFMultiplayerFinishProcessingMatchmakingStateChanges](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges.md)


## Related topics

- [PFMatchmakingStateChangeType](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingstatechangetype.md)
- [PFMultiplayerStartProcessingMatchmakingStateChanges](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges.md)
- [PFMultiplayerFinishProcessingMatchmakingStateChanges](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges.md)
- [非同步 Lobby 和 Matchmaking C++ SDK 作業指南](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/lobby-and-matchmaking-client-sdk-async.md)
- [PFMultiplayer C/C++ API 概觀 - PFMatchmaking.h](https://devdocs.xbox.com/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)
