> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGame (API 內容)

> XGame

# XGame

XGame API。

## 函式

| 函式 | 描述 |
| - | - |
| [XGameGetXboxTitleId](https://docs.xbox.com/zh-TW/reference/system/xgame/functions/xgamegetxboxtitleid.md) | 傳回遊戲的 TitleID。 |
| [XLaunchNewGame](https://docs.xbox.com/zh-TW/reference/system/xgame/functions/xlaunchnewgame.md) | 結束目前的遊戲、釋放所有已配置的資源，並啟動新遊戲。 |
| [XLaunchRestartOnCrash](https://docs.xbox.com/zh-TW/reference/system/xgame/functions/xlaunchrestartoncrash.md) | 當目前執行中的遊戲執行個體因當機而異常終止時，自動重新啟動遊戲。 |

## 概念文件

* [時間敏感的執行緒](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [在 Unity 專案中使用 GDK API 的 C# 包裝函式](https://docs.xbox.com/zh-TW/build/gdk-and-engines/unity/unity-api-wrappers.md)
* [在遊戲中實作雲端存檔](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-cloud-saves)

## 另請參閱

[系統 API 參考](https://docs.xbox.com/zh-TW/reference/system/gc-reference-system-toc.md)


## Related topics

- [XGameUI (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgameui/xgameui_members.md)
- [XGameActivation (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameEvent (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgameevent/xgameevent_members.md)
- [XGameSave (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgamesave/xgamesave_members.md)
- [XGameStreaming (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgamestreaming/xgamestreaming_members.md)
