> ## 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 contents)

> XGame

XGame APIs.

## Functions

| Function | Description |
| - | - |
| [XGameGetXboxTitleId](https://docs.xbox.com/reference/system/xgame/functions/xgamegetxboxtitleid.md) | Returns the TitleID for the game. |
| [XLaunchNewGame](https://docs.xbox.com/reference/system/xgame/functions/xlaunchnewgame.md) | Ends the current game, freeing any allocated resources, and launches a new game. |
| [XLaunchRestartOnCrash](https://docs.xbox.com/reference/system/xgame/functions/xlaunchrestartoncrash.md) | Automatically restarts the game when the currently running instance of the game abnormally terminates due to a crash. |

## Conceptual documentation

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
* [Implement cloud saves in your game](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-cloud-saves)

## See also

[System API reference](https://docs.xbox.com/reference/system/gc-reference-system-toc.md)


## Related topics

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