Skip to content

packFromJson beta ​

Function of @v12-engine/engine

ts
export declare function packFromJson(json: string | unknown, where?: string): PackMod;

Makes a mod of a pack's file (its text, or what was parsed of it): checked, then applying its definitions (each list in the order of its ids, a definition the game has put in its place), its data over the whole and its settings. Its hash, of the text as given, goes with the game's mods