EditorRun beta
Class of @v12-engine/editor
export declare class EditorRunThe project run from the editor (E2E plan EDF5, decision 4): the scripts its list lets the editor run (editorFiles({ run })), started and stopped by the dev server, what they print (here, and in the Console); the web game opened in a tab at a scene and a map, watched as it says how it goes (watchRun), and closed from here. What the Run panel shows, in code
A part of the editor, as it gives it (editor.run)
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the EditorRun class.
Members
closeGame
closeGame(id: string): void;Closes a game opened from here: it is told to, and the tab closed where this page opened it. It leaves the list as it goes
games
games(): readonly RunGame[];The games opened and not closed. A signal
load
load(): Promise<void>;Reads the scripts from the dev server again. What cannot be read is said
loaded
loaded(): boolean;Whether load has answered once. A signal
openGame
openGame(where?: {
scene?: string;
map?: string;
}): RunGame | undefined;Opens the web game in a tab of this browser, at a scene and a map where they are said, and watches it. The game started with startApp or launch on a page being developed says how it goes by itself. What was opened, or nothing where the browser would not open it (it blocks what no click asked for; why is said)
scripts
scripts(): readonly RunScript[];The scripts the project lets the editor run, as they stand. A signal
start
start(script: string): Promise<boolean>;Starts a script of the list. Whether it started; why not is said
stop
stop(script: string): Promise<boolean>;Stops a script and all it started. Whether it could be asked; why not is said