GrassBrushHost beta
Interface of @v12-engine/editor
ts
export interface GrassBrushHostWhat the editor reaches for the grass brushes: the game played here, whether the map is shown in its place, the editor's view (the game is drawn over it, to the same size), and how it says things
Members
canvas
ts
readonly canvas: HTMLCanvasElement;The editor's view: the game is drawn over it, to its size, so a point of the page is found on the game's ground by it
changes
ts
changes: {
mark(...parts: string[]): void;
};Where the brush armed or let go is told (play)
played
ts
readonly played: GameClient | undefined;The game played here: none while the map is edited
plays
ts
readonly plays: {
readonly mapShown: boolean;
};Whether the map is shown in the game's place (EditorPlaying.mapShown): the brush is the game's alone
say
ts
say(message: string): void;Says something in the status line