# Function: exportGameState() (/pixi-vn/index/namespaces/Game/functions/exportGameState)



\> **exportGameState**(): `Promise`\<[`GameState`](/pixi-vn/index/interfaces/GameState)>

Defined in: [src/index.ts:252](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/index.ts#L252)

Get all the game data. It can be used to save the game.

## Returns [#returns]

`Promise`\<[`GameState`](/pixi-vn/index/interfaces/GameState)>

The game data
