Skip to content

layFiles ​

Function of @v12-engine/client

ts
export declare function layFiles<V extends GameView>(view: V & {
    [field in Exclude<keyof V, keyof GameView>]: never;
}, files: readonly (readonly [ViewFile<unknown>, unknown])[]): V & {
    files: ViewFiles & {
        laid: readonly LaidFile[];
    };
};

A game's view with its files laid over what its code says, in the order given (a file laid later is laid over what those before it made of a field: hud.json over the looks looks.json made). Each file's data is read, and throws on what is wrong. layFiles({ fx: presetFx(), ... }, [[FX_FILE, fxJson], [QUALITY_FILE, qualityJson]])