(engine: VisualNovelEngine)
| 22 | * @returns An object containing the current histories, state and storage variables. |
| 23 | */ |
| 24 | export function gameObject (engine: VisualNovelEngine): { history: HistoryMap; state: StateMap; storage: unknown } { |
| 25 | return { |
| 26 | history: engine.history (), |
| 27 | state: engine.state (), |
| 28 | storage: engine.storage () |
| 29 | }; |
| 30 | } |
| 31 | |
| 32 | // ============================================================================ |
| 33 | // Save |