Skip to content

overridesOf beta ​

Function of @v12-engine/editor

ts
export declare function overridesOf(source: MapClip, now: MapClip): {
    over: PrefabOverrides;
    without: Partial<Record<string, number[]>>;
    added: MapClip;
};

The fields of a copy set apart from another (its source), by kind and id, what it leaves out of it and what it adds: a variant's overrides, or what an instance changed of its prefab (places within a hundredth, a building's within its snap to the cells)