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

# 多人遊戲管理員範例程式碼

> XBOX 多人遊戲管理員案例的範例程式碼，包括與好友一起玩、SmartMatch 配對、傳送遊戲邀請，以及通訊協定啟用。

本節提供多人遊戲管理員 (MPM) 的範例程式碼。

## 本節內容

[使用多人遊戲管理員啟用與好友一起玩多人遊戲](/zh-TW/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-friends)
說明如何使用多人遊戲管理員，啟用與好友一起線上玩多人遊戲。

[使用多人遊戲管理員啟用透過 SmartMatch 尋找多人遊戲](/zh-TW/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-matchmaking)
說明如何使用多人遊戲管理員，讓玩家可以使用 SmartMatch 配對尋找多人遊戲。

[使用多人遊戲管理員傳送遊戲邀請](/zh-TW/services/xbox-services/multiplayer/mpm/how-to/live-send-game-invites)
說明如何使用多人遊戲管理員，讓玩家可以傳送遊戲邀請給其他玩家以加入遊戲。

[使用多人遊戲管理員處理通訊協定啟用以開始遊戲](/zh-TW/services/xbox-services/multiplayer/mpm/how-to/live-handle-protocol-activation)
說明如何使用多人遊戲管理員處理通訊協定啟用，讓遊戲為了回應另一個動作而自動啟動，例如當玩家接受其他玩家的遊戲邀請時。


## Related topics

- [操作說明](/zh-TW/services/xbox-services/multiplayer/mpm/how-to/index.md)
- [多人遊戲管理員 (MPM)](/zh-TW/services/xbox-services/multiplayer/mpm/live-multiplayer-manager-nav.md)
- [多人遊戲管理員概念](/zh-TW/services/xbox-services/multiplayer/mpm/concepts/live-mm-concepts-nav.md)
- [多人遊戲管理員 API 概觀](/zh-TW/services/xbox-services/multiplayer/mpm/concepts/live-multiplayer-manager-api-overview.md)
- [遊戲管理型成就範例程式碼](/zh-TW/services/xbox-services/player-data/achievements/title-managed/how-to/live-achievements-howto-nav.md)
