文档

支持

Matchmaker

Matchmaker

Matchmaker 工单流程

Understand how tickets move from creation through matching to server allocation.
阅读时间1 分钟最后更新于 15 天前

该 Matchmaker 流程包括创建匹配工单、为创建的匹配分配服务器、指定工单等一系列流程。
Matchmaker ticket flow
  1. 玩家启动游戏后,游戏客户端会使用 Unity Authentication 服务进行身份验证。
  2. 玩家选择游戏参数(如游戏模式)后,游戏客户端会创建匹配工单并发送到 Matchmaker Service。
  3. Matchmaker 会将工单与其他玩家的工单进行匹配,并从 Multiplay Hosting Service 请求分配游戏服务器以托管匹配,从而传递匹配结果中的相关信息。
  4. Multiplay Hosting 会分配最合适的服务器并将匹配结果转发到有效负载分配服务
  5. 服务器启动后会检索匹配结果,以获取玩家身份信息及其所在队伍信息。
  6. 分配服务器后,Matchmaker 会将连接信息 IP 和端口更新到工单中。
  7. 游戏客户端每秒都会轮询 Matchmaker Service,以获取工单状态。服务器连接信息添加到工单后,游戏客户端会检索此信息、连接服务器并加入匹配。