mwg API
    Preparing search index...

    Interface CampaignSaveParts<CampaignState, Result, World, TurnState>

    The live pieces to capture: anything with the snapshot method, so no class import is forced.

    interface CampaignSaveParts<
        CampaignState extends StateValue,
        Result extends StateValue,
        World,
        TurnState,
    > {
        campaign: { snapshot(): CampaignSnapshot<CampaignState, Result> };
        simulation?: { snapshot(): SimulationSnapshot<TurnState> } | null;
        world: World;
    }

    Type Parameters

    Index
    campaign: { snapshot(): CampaignSnapshot<CampaignState, Result> }
    simulation?: { snapshot(): SimulationSnapshot<TurnState> } | null
    world: World