PokéRogue
    Preparing search index...

    Interface representing the fully resolved type of a new battle config, used to create a new Battle instance.

    interface NewBattleResolvedProps {
        battleType: WILD | TRAINER | MYSTERY_ENCOUNTER;
        double: boolean | undefined;
        mysteryEncounterType?: MysteryEncounterType;
        trainer?: Trainer;
        waveIndex: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The type of battle to create.

    double: boolean | undefined

    Whether the battle is a double battle.

    ⚠️ Mystery Encounters will ignore this property and set it to false.

    mysteryEncounterType?: MysteryEncounterType

    The type of Mystery Encounter to spawn. Only present in data initialized from a saved session, and will be undefined for non-ME battles.

    trainer?: Trainer

    The Trainer to spawn. Only present in processed data and will be undefined for non-trainer battles.

    waveIndex: number

    The wave number of the NEW wave to spawn. Will always be >=1 (barring save data corruption).