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

# PFLobbyInviteReceivedStateChange

> InviteReceived PlayFab 多人游戏状态变更详细信息，在侦听实体收到加入大厅的邀请时发送。

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

## 语法

```cpp theme={null}
struct PFLobbyInviteReceivedStateChange : PFLobbyStateChange {  
    PFEntityKey listeningEntity;  
    PFEntityKey invitingEntity;  
    const char* connectionString;  
    const char* lobbyId;  
}  
```

### 成员

**`listeningEntity`**   [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)

正在侦听邀请且已被邀请的实体。

**`invitingEntity`**   [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)

邀请 `listeningEntity` 加入大厅的实体。

**`connectionString`**   const char\*\
*is null-terminated*

`listeningEntity` 被邀请加入的大厅的连接字符串。

**`lobbyId`**   const char\*\
*is null-terminated*

`listeningEntity` 被邀请加入的大厅的 ID。

## 要求

**头文件：** PFLobby.h

## 另请参阅

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


## Related topics

- [PlayFab Multiplayer C++ SDK 发行说明](/zh-CN/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [大厅邀请](/zh-CN/services/playfab/multiplayer/lobby/lobby-invites.md)
- [PFMultiplayerStartListeningForLobbyInvites](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartlisteningforlobbyinvites.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)
