Skip to content

PlayHereContext beta ​

Interface of @v12-engine/editor

ts
export interface PlayHereContext extends GameRunContext

What a game played over the editor is made on (EditorAppProps.playHere)

Members ​

editing ​

ts
editing: MapBeingEdited;

The map as it is in the editor, and how it is to be played

from ​

ts
from?: WorldSave;

A save to go on from, when the game is started again from one (a checkpoint)

restart ​

ts
restart: (from?: WorldSave) => void;

Starts the game over, here over the editor: for a game that would otherwise open a scene of its own for it