EditorOverview beta
Class of @v12-engine/editor
export declare class EditorOverviewThe 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
campaign(): OverviewCampaign | undefined;The game's campaign, as its file says it: none until load, or for a game without one
cinematics
cinematics(): OverviewCinematic[];The game's cinematics, as the editor has read them
editScene
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
facts(): ProjectFacts | undefined;What the project is: none until load, and without a project. A signal
load
load(): Promise<void>;Reads what comes from the project: what it is, its maps, the campaign. What cannot be read is said
loaded
loaded(): boolean;Whether load has answered once. A signal
maps
maps(): readonly OverviewMap[];The game's maps, as load last read them. A signal
openCampaign
openCampaign(): void;Opens the Campaign panel
openCampaignCode
openCampaignCode(mission?: string): Promise<void>;Opens the campaign's file in the code editor: at a mission, by its id
openCinematic
openCinematic(id: string): boolean;Opens a cinematic in the Cinematic panel. Whether the game has it
openCinematicCode
openCinematicCode(id: string): Promise<void>;Opens a cinematic's file in the code editor
openCode
openCode(place: {
file?: string;
line?: number;
}): Promise<void>;Opens a place of the project in the code editor (one of facts)
openMap
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
openMapCode(name: string): Promise<void>;Opens a map's file in the code editor
openSceneCode
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
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
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