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

## Functions

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

## 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 参考](https://docs.xbox.com/zh-CN/reference/system/gc-reference-system-toc.md)


## Related topics

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