Skip to main content

Function: mergeSchemas()

mergeSchemas(schemas): SaveSchema

Defined in: schema.ts:139

Merges schemas captured from several saves of the same game version.

Parameters

schemas

SaveSchema[]

One or more schemas for the same version

Returns

SaveSchema

The merged schema

Remarks

Exported save files hold one record per slot. Different slots populate different collections, so the union of their paths describes the version better than any single slot does. A concrete element kind always beats array<unknown>, which only means "this slot happened to be empty here".

Throws

Error if schemas is empty