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

# XGame

> XGame

# XGame

XGame API。

## Functions

| Function                                                                         | Description                 |
| -------------------------------------------------------------------------------- | --------------------------- |
| [XGameGetXboxTitleId](/reference/system/xgame/functions/xgamegetxboxtitleid)     | 返回游戏的 TitleID。              |
| [XLaunchNewGame](/reference/system/xgame/functions/xlaunchnewgame)               | 结束当前游戏、释放已分配的所有资源，然后启动新游戏。  |
| [XLaunchRestartOnCrash](/reference/system/xgame/functions/xlaunchrestartoncrash) | 当游戏当前运行的实例因崩溃而异常终止时，自动重启游戏。 |

## Conceptual documentation

* [时间敏感型线程](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [在 Unity 项目中为 GDK API 使用 C# 包装器](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/get-started-with-unity-pc/features/gdk-unity-api-wrappers)
* [在游戏中实现云保存](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-cloud-saves)

## See also

[系统 API 参考](/reference/system/gc-reference-system-toc)


## Related topics

- [XGameRuntimeFeature](/zh-CN/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)
- [XGameUI](/zh-CN/reference/system/xgameui/xgameui_members.md)
- [XGameActivation](/zh-CN/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameSave](/zh-CN/reference/system/xgamesave/xgamesave_members.md)
- [XGameStreaming](/zh-CN/reference/system/xgamestreaming/xgamestreaming_members.md)
