PokéRogue
    Preparing search index...

    Helper to allow reloading sessions in unit tests.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    sessionData: SessionSaveData

    Methods

    • Simulate reloading the session from the title screen, until reaching the beginning of the first turn (equivalent to running startBattle()) for the reloaded session.

      Returns Promise<void>

      A Promise that resolves once the reloading process completes.

      After reloading, all references to player/enemy Pokemon will no longer be correct (due to initializing new Pokemon instances).