ScreenHost beta
Interface of @v12-engine/editor
ts
export interface ScreenHostThe parts of the editor the screen is made of: what is drawn, the lines over it, picking from it
Members
camera
ts
readonly camera: {
readonly focus: Vec2;
};Where the camera looks
drawing
ts
readonly drawing: EditorDrawing;The part that draws the map
hovered
ts
readonly hovered: Vec2 | null;The ground under the pointer: none off the map
lines
ts
readonly lines: EditorLines;The part that draws the lines and names over the map
panelScene
ts
readonly panelScene: EditorPanelScene;The part that draws a panel's own view of the editor's scene
picking
ts
readonly picking: EditorPicking;The part that picks on the map from the screen
pickRequests
ts
readonly pickRequests: EditorPickRequests;The part that serves the requests for a pick from the scene
redraw
ts
redraw(): void;Draws the view again, as a change does
styles
ts
readonly styles: FoliagePreviewHost['styles'];The styles of grass and bushes, with the Patch tool's selection