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

# PFLobbyLeaveLobbyCompletedStateChange

> LeaveLobbyCompleted PlayFab 多人游戏状态变更详细信息，在一个或多个本地用户完成离开大厅时引发。

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

## 语法

```cpp theme={null}
struct PFLobbyLeaveLobbyCompletedStateChange : PFLobbyStateChange {  
    PFLobbyHandle lobby;  
    const PFEntityKey* localUser;  
    void* asyncContext;  
}  
```

### 成员

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

提供给与此状态变更相关联的调用的大厅。

**`localUser`**   const [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)\*\
*may be nullptr*

提供给与此状态变更相关联的调用的本地用户。可以为 null。

如果此值为 null，则表示该 title 请求所有本地成员离开指定的大厅。

**`asyncContext`**   void\*

提供给与此状态变更相关联的调用的异步上下文。

## 要求

**头文件：** PFLobby.h

## 另请参阅

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


## Related topics

- [PFLobbyLeave](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyleave.md)
- [PFMultiplayer C/C++ API 概览 - PFLobby.h](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyStateChangeType](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFMultiplayerUninitialize](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayeruninitialize.md)
- [PFLobbyServerLeaveLobbyAsServerCompletedStateChange](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyserverleavelobbyasservercompletedstatechange.md)
