Skip to content

EditorOverview beta ​

Class of @v12-engine/editor

ts
export declare class EditorOverview

The game as a whole (E2E plan EDF4): the scenes of its app, its maps, cinematics and campaign, what the project is and what its code imports; each opened where it is made (a tab of the editor, a panel), in the game, or in the code editor. What the Project panel shows, in code: load reads what comes from the project, again each time it is called

A part of the editor, as it gives it (editor.overview)

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the EditorOverview class.

Members ​

campaign ​

ts
campaign(): OverviewCampaign | undefined;

The game's campaign, as its file says it: none until load, or for a game without one

cinematics ​

ts
cinematics(): OverviewCinematic[];

The game's cinematics, as the editor has read them

editScene ​

ts
editScene(id: string): Promise<boolean>;

Opens in the editor what a scene shows (EditorSceneInfo): its map in a tab, its cinematic in the Cinematic panel. Whether it shows anything

facts ​

ts
facts(): ProjectFacts | undefined;

What the project is: none until load, and without a project. A signal

load ​

ts
load(): Promise<void>;

Reads what comes from the project: what it is, its maps, the campaign. What cannot be read is said

loaded ​

ts
loaded(): boolean;

Whether load has answered once. A signal

maps ​

ts
maps(): readonly OverviewMap[];

The game's maps, as load last read them. A signal

openCampaign ​

ts
openCampaign(): void;

Opens the Campaign panel

openCampaignCode ​

ts
openCampaignCode(mission?: string): Promise<void>;

Opens the campaign's file in the code editor: at a mission, by its id

openCinematic ​

ts
openCinematic(id: string): boolean;

Opens a cinematic in the Cinematic panel. Whether the game has it

openCinematicCode ​

ts
openCinematicCode(id: string): Promise<void>;

Opens a cinematic's file in the code editor

openCode ​

ts
openCode(place: {
        file?: string;
        line?: number;
    }): Promise<void>;

Opens a place of the project in the code editor (one of facts)

openMap ​

ts
openMap(name: string): Promise<boolean>;

Opens a map in a tab of its own, by its name in maps: the map open now pinned as a tab first, so it is kept as it is (changes and all). Whether it was opened (it is, already, where it is the map open)

openMapCode ​

ts
openMapCode(name: string): Promise<void>;

Opens a map's file in the code editor

openSceneCode ​

ts
openSceneCode(id: string): Promise<void>;

Opens where a scene is made in the code editor: where its id is said, else where the project starts its app (facts().app, appScenes naming none)

playScene ​

ts
playScene(id: string): Promise<boolean>;

Opens a scene in the app: the editor is left, once what is not saved has been asked about. Whether it was

scenes ​

ts
scenes(): readonly EditorSceneInfo[];

Every scene of the app the editor is a scene of, as load last read them: none in an editor that is no scene of one. A signal