mwg API
    Preparing search index...

    Interface CampaignSaveState<CampaignState, Result, World, TurnState>

    Everything one campaign save holds, as plain JSON: which level the campaign is on and what it carries, the scenario/world state, and the turn-level simulation. The world payload is opaque here on purpose - an mwl.MwlWorld, a roguelike.Level, a game's own scenario object - because this is a container, the same way SaveSystem is.

    interface CampaignSaveState<
        CampaignState extends StateValue,
        Result extends StateValue,
        World,
        TurnState,
    > {
        campaign: CampaignSnapshot<CampaignState, Result>;
        simulation: SimulationSnapshot<TurnState> | null;
        world: World;
    }

    Type Parameters

    Index
    simulation: SimulationSnapshot<TurnState> | null
    world: World