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

# Multiplayer Manager 示例代码

> XBOX Multiplayer Manager 场景的示例代码,包括与好友一起游戏、SmartMatch 匹配、发送游戏邀请以及协议激活。

本节提供 Multiplayer Manager (MPM) 的示例代码。

## 本节内容

[使用 Multiplayer Manager 启用与好友一起玩多人游戏](/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-friends)
介绍如何使用 Multiplayer Manager 在线上与好友一起玩多人游戏。

[使用 Multiplayer Manager 通过 SmartMatch 查找多人游戏](/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-matchmaking)
介绍如何使用 Multiplayer Manager 让玩家可以通过 SmartMatch 匹配查找多人游戏。

[使用 Multiplayer Manager 发送游戏邀请](/services/xbox-services/multiplayer/mpm/how-to/live-send-game-invites)
介绍如何使用 Multiplayer Manager 让玩家可以向其他玩家发送游戏邀请以加入游戏。

[使用 Multiplayer Manager 处理协议激活以启动游戏](/services/xbox-services/multiplayer/mpm/how-to/live-handle-protocol-activation)
介绍如何使用 Multiplayer Manager 处理协议激活,以便游戏自动响应另一操作而启动,例如当玩家接受来自另一玩家的游戏邀请时。


## Related topics

- [Multiplayer Activity 示例代码](/zh-CN/services/xbox-services/multiplayer/mpa/how-to/live-mpa-how-to-nav.md)
- [邀请示例代码](/zh-CN/services/xbox-services/multiplayer/invites/how-to/live-invites-howto-nav.md)
- [用户系统（好友列表）示例代码](/zh-CN/services/xbox-services/community/people-system/how-to/live-pplsys-howto-nav.md)
- [Rich Presence 示例代码](/zh-CN/services/xbox-services/community/presence/how-to/live-presence-howto-nav.md)
- [信誉示例代码](/zh-CN/services/xbox-services/community/reputation/how-to/live-reputation-howto-nav.md)
