Computers · Program API v1.2.0
    Preparing search index...

    Function world

    • Persist a value shared by all Programs on all computers in the current world.

      Parameters

      • key: string

        A valid, distinctive state key.

      • value: JsonValue

        Same JSON requirements and limits as computer.

      Returns Promise<JsonValue>

      The copied saved value; rejects on validation/write failure or cancellation.

      Every Program can use world saves. Writes use the GM's shared queue; read/modify/write is not atomic.

      await save.world("example_relayOnline", true);