Member Junction
    Preparing search index...

    The generated-data cache: its root, its key (spec hash) and a seed's directory.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • <root>/<kind>/<id>/<specHash12>/seed-<k>.

      Parameters

      • dataRoot: string
      • kind: "world" | "scenario"
      • id: string
      • specHash: string
      • seed: number

      Returns string

    • $TRUTH_DATA_DIR, else TruthSuite/.data.

      Returns string

    • sha256 of the canonical spec (MJGlobal Canonicalize: object keys sorted at every level, so key order never changes the hash), the generator inputs (the generator's source, its extra input files and the shared generator modules, joined) and the Loom pin: any of them changing regenerates.

      Parameters

      • spec: { [k: string]: Json }
      • generatorSource: string
      • loomSha: string

      Returns string