EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

MigrationDeclaration

Explicit source version and state migration script.

Signature

{ from_state_version: PositiveCount, resident_hashes: ({PackageDigest})?, script: ScriptId, villagers: ({ContentId})? }

Fields

NameTypeMeaning
from_state_versionPositiveCountSaved-state version accepted as input to this migration.
Range: 1…2147483647; Unit: count
resident_hashes{PackageDigest}Exact source package hashes for which villagers declares the old resident order. Consumed only when upgrading save formats before 34; removable when those formats are no longer supported.
Items: 1…4096; Unique entries
scriptScriptIdMigration script declared by the same package.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: script
villagers{ContentId}Resident order (the ruleset's villagers, by number) of saves at this state version that carry no resident table (save format before 34); empty: no residents; absent: no historical order is known.
Items: 0…64; Unique entries