feat(viewer): add Vue-based HUD, ops strip, and history window
This commit is contained in:
@@ -1,13 +1,27 @@
|
||||
import type { ViewerHudBindings } from "./viewerHudState";
|
||||
import type { Selectable, CameraMode } from "./viewerTypes";
|
||||
import { ViewerAppController } from "./ViewerAppController";
|
||||
|
||||
export class GameViewer {
|
||||
private readonly controller: ViewerAppController;
|
||||
|
||||
constructor(container: HTMLElement) {
|
||||
this.controller = new ViewerAppController(container);
|
||||
constructor(container: HTMLElement, hud: ViewerHudBindings) {
|
||||
this.controller = new ViewerAppController(container, hud);
|
||||
}
|
||||
|
||||
async start() {
|
||||
await this.controller.start();
|
||||
}
|
||||
|
||||
focusSelection(selection: Selectable, cameraMode?: CameraMode) {
|
||||
this.controller.focusSelection(selection, cameraMode);
|
||||
}
|
||||
|
||||
openHistoryWindow(selection: Selectable) {
|
||||
this.controller.openHistoryWindow(selection);
|
||||
}
|
||||
|
||||
dispose() {
|
||||
this.controller.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user