Skip to content

MapChange beta ​

Interface of @v12-engine/editor

ts
export interface MapChange

What the editor says of the map having changed (map.changed): which parts are different, and the step of the history that made them so

Members ​

how ​

ts
how: OperationHow;

How it came about: done, taken back, done again, or a change being made put back as it was

layers ​

ts
layers: readonly LayerName[];

The layers that are different, by name, where layers is among the parts

name ​

ts
name: string;

What was done, as the history names it: "Move 3 objects"

operation ​

ts
operation: Operation;

The step of the history itself: what each thing was and became

parts ​

ts
parts: ReadonlySet<MapSection>;

The parts of the map that are different (change.parts.has('objects'))

values ​

ts
values: readonly ValueKey[];

The values that are different (map:bounds, look:sky, data:towers), where meta, environment or fields is among the parts

whole ​

ts
whole: boolean;

All of the map at once (a resize, a heightmap of another size): every part is different