EditorTemplates beta
Class of @v12-engine/editor
export declare class EditorTemplatesMaps to start from (campaign plan EQ12): the map open now kept without what stands or is painted on it (mapTemplate), as a file of the game's (templates/<name>.vgmap.json: the project's folder of the game, or this browser without one), and a new map made of one (File › New). What File › Save as template and New from template do, in code
A part of the editor, as it gives it (editor.templates)
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the EditorTemplates class.
Members
list
list(): Promise<string[]>;The game's templates, by name, from where its files are kept
names
names(): string[];The templates as last listed (list), by name: listed the first time it is asked
open
open(name: string): Promise<boolean>;A new map made of a template, opened as a map not saved yet (as New map is), once the map open now may be let go of. False where there is no such template, or the map is kept
read
read(name: string): Promise<GameMap | undefined>;A template, read: none for one that is not there
remove
remove(name: string): Promise<void>;Takes a template away, at once
save
save(name: string): Promise<string>;Keeps the map open now as a template under a name, at once (over one of that name). Gives back its path