PARACOSM AGENTOS | API Reference v0.9.1202
Home Simulation API Docs GitHub npm
Home Simulation API Docs GitHub npm AgentOS Discord
paracosm - v0.9.1202
    Preparing search index...

    Interface SimulationMetadata

    interface SimulationMetadata {
        currentTime: number;
        currentTurn: number;
        landingSupplies?: Record<string, number>;
        leaderId: string;
        mortalityDice?: "life";
        seed: number;
        simulationId: string;
        startTime: number;
        yearsPerUnit?: number;
    }
    Index
    currentTime: number
    currentTurn: number
    landingSupplies?: Record<string, number>

    What the colony held on landing day of each supply the scenario declares as sustaining its people (sustains), which the yearly age and accident rates read the colony's supply level against. Absent where the scenario declares none, and in a saved state that holds none; either reads as a supply level of 1.

    leaderId: string
    mortalityDice?: "life"

    'life' where the scenario keeps one death die for each cause for a person's whole life (setup.mortalityDice). Absent, a die for each cause in each year: every scenario that declares no 'life', and a state saved before this choice existed, so a saved run and a fork of one keep the dice they were saved with.

    seed: number
    simulationId: string
    startTime: number
    yearsPerUnit?: number

    Years in one unit of the scenario's time (a month is 1/12), which ages and the yearly rates read. Absent in a state saved before units had lengths, which reads as 1.