MapAreaDef beta
Interface of @v12-engine/editor
ts
export interface MapAreaDef<T = unknown>An area of a game's own on the map editor: its id, and how it is made, with the editor (its document and the areas it needs: editor.objects, editor.names...). Given where the editor is made (MapEditorOptions.areas), added to one there is (editor.addArea), or by an extension of the editor's (EditorExtension.areas)
Members
id
ts
id: string;The area's id, which editor.area(id) finds it by
make
ts
make(editor: MapEditor): T;Makes the area for a map editor, with its document and the areas it needs