simple-visual-novel
    Preparing search index...

    Interface GameState

    Represents the serializable state of the game.

    This interface defines the structure of game state that can be saved and restored. It includes game variables, the current scene, and navigation history.

    GameState

    interface GameState {
        _currentSceneId: string | null;
        sceneHistory: string[];
        variables: Record<string, any>;
    }
    Index

    Properties

    _currentSceneId: string | null

    The ID of the currently active scene

    sceneHistory: string[]

    Array of previously visited scene IDs for back navigation

    variables: Record<string, any>

    Custom game variables (flags, counters, etc.)