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

# PFMultiplayer C/C++ API 概述 - PFMatchmaking.h

> PlayFab 多人游戏 C/C++ API 中 PFMatchmaking.h 头文件的概述，列出了用于管理匹配票证的函数、结构体和枚举。

## 函数

| 函数                                                                                                                                                                                                       | 描述                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [PFMatchmakingTicketCancel](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketcancel)                                                       | 取消票证。                           |
| [PFMatchmakingTicketGetCustomContext](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetcustomcontext)                                   | 检索之前与此票证对象关联的应用私有自定义指针大小上下文值。   |
| [PFMatchmakingTicketGetMatch](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetmatch)                                                   | 如果已找到匹配，则提供该匹配。                 |
| [PFMatchmakingTicketGetStatus](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetstatus)                                                 | 提供匹配票证状态。                       |
| [PFMatchmakingTicketGetTicketId](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid)                                             | 提供票证 ID。                        |
| [PFMatchmakingTicketSetCustomContext](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketsetcustomcontext)                                   | 在此票证对象上配置可选的自定义指针大小上下文值。        |
| [PFMultiplayerCreateMatchmakingTicket](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket)                                 | 为一个或多个本地用户创建匹配票证。               |
| [PFMultiplayerCreateServerBackfillTicket](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreateserverbackfillticket)                           | 创建服务器回填票证。                      |
| [PFMultiplayerDestroyMatchmakingTicket](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerdestroymatchmakingticket)                               | 销毁匹配票证。                         |
| [PFMultiplayerFinishProcessingMatchmakingStateChanges](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges) | 返回正在处理的匹配状态变更数组。                |
| [PFMultiplayerJoinMatchmakingTicketFromId](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid)                         | 使用票证 ID 和队列名称将一个或多个本地用户加入到匹配票证。 |
| [PFMultiplayerStartProcessingMatchmakingStateChanges](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerstartprocessingmatchmakingstatechanges)   | 检索自上次此类调用以来要处理的所有匹配状态变更数组。      |

## 结构

| 结构                                                                                                                                                                                         | 描述                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ |
| [PFMatchmakingMatchDetails](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingmatchdetails)                                           | 已完成的票证找到的最终匹配信息。         |
| [PFMatchmakingMatchMember](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingmatchmember)                                             | 匹配结果中的成员。                |
| [PFMatchmakingServerBackfillTicketConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingserverbackfillticketconfiguration) | 定义服务器回填票证的配置。            |
| [PFMatchmakingTicketConfiguration](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketconfiguration)                             | 定义匹配票证的配置。               |
| [PFMultiplayerPort](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmultiplayerport)                                                           | PlayFab 多人游戏服务器使用的端口。    |
| [PFMultiplayerServerDetails](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmultiplayerserverdetails)                                         | 关于 PlayFab 多人游戏服务器的详细信息。 |

## 状态变更

| 状态变更                                                                                                                                                                                 | 描述                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- |
| [PFMatchmakingStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingstatechange)                                       | 匹配库中事件或状态变更的通用基础结构表示。              |
| [PFMatchmakingTicketCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketcompletedstatechange)         | *TicketCompleted* 类型状态变更的特定信息。     |
| [PFMatchmakingTicketStatusChangedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/structs/pfmatchmakingticketstatuschangedstatechange) | *TicketStatusChanged* 类型状态变更的特定信息。 |

## 枚举

| 枚举                                                                                                                                                   | 描述                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [PFMatchmakingStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingstatechangetype) | 匹配库中可能发生的状态变更类型。              |
| [PFMatchmakingTicketStatus](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmatchmakingticketstatus)       | 匹配票证可能的状态。                    |
| [PFMultiplayerProtocolType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/enums/pfmultiplayerprotocoltype)       | 用于连接到 PlayFab 多人游戏服务器端口的协议类型。 |


## Related topics

- [PFMultiplayer C/C++ API 概述 - PFMultiplayer.h](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfmultiplayer_members.md)
- [PFMultiplayerCreateMatchmakingTicket](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket.md)
- [PFMultiplayerDestroyMatchmakingTicket](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerdestroymatchmakingticket.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
- [PFMultiplayerFinishProcessingMatchmakingStateChanges](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerfinishprocessingmatchmakingstatechanges.md)
