Skip to content

EditorSceneDef beta ​

Interface of @v12-engine/editor/scene

ts
export interface EditorSceneDef extends EditorSetup, Pick<AppEditorScene, 'id' | 'name' | 'game'>, Partial<Pick<AppEditorScene, 'exit' | 'play'>>

The map editor as a scene of the app (editorScene): a page of its own, not a game

Members ​

game ​

ts
game: LoadedGame;

The game whose maps it makes: its rules, and how it looks

sandbox ​

ts
sandbox?: SceneRef;

The scene its Sandbox button opens the map in, given { map }, as play (from AppEditorScene) its Play. No button when left out