Pixi’VN
indexType aliases

Type Alias: OnExportGameStateHandler

pixi-vn on GitHub

> OnExportGameStateHandler = (state) => void | Promise<void>

Defined in: src/interfaces/GameStateHandlers.ts:8

Handler registered with Game.addOnExportGameState. It receives the complete save-state object built by Game.exportGameState and can mutate it (e.g. add custom properties declared through GameState module augmentation) before it is returned to the caller.

Parameters

state

GameState

Returns

void | Promise<void>

On this page