Skip to content

EditorMapData beta ​

Interface of @v12-engine/editor

ts
export interface EditorMapData

The editor's own, kept with a map (GameMap.editor): what is hidden and locked, the groups and the views, which are no step of the history (an undo does not bring them back), and the instances of prefabs, which are

Members ​

groups ​

ts
groups?: EditorGroup[];

The groups of the Hierarchy

hidden ​

ts
hidden?: Named[];

The things hidden by themselves; not the ones hidden by isolating

locked ​

ts
locked?: Named[];

The things locked against being picked and edited

prefabs ​

ts
prefabs?: PrefabInstance[];

The prefabs placed on the map, each with the parts it put down (PrefabInstance)

selections ​

ts
selections?: EditorSelectionSet[];

Selections kept by name (EditorSelectionSet), to select again: on Alt and a key, in the Hierarchy

terrainRules ​

ts
terrainRules?: TerrainRules;

The bands that paint the tiles by height and slope, and whether they are kept live (TerrainRulesArea, MF6)

views ​

ts
views?: Record<string, CameraPose>;

Views kept on the keys 1 to 9 (Ctrl and the key keeps one, the key goes back to it), by the key