2019-08-26 21:42:12 +08:00
|
|
|
import { QuestRenderer } from "../rendering/QuestRenderer";
|
2019-12-20 01:54:01 +08:00
|
|
|
import { QuestRunnerModelManager } from "../rendering/QuestRunnerModelManager";
|
2019-12-20 03:02:52 +08:00
|
|
|
import { QuestRendererView } from "./QuestRendererView";
|
2019-12-22 02:40:42 +08:00
|
|
|
import { QuestRunner } from "../QuestRunner";
|
|
|
|
import { GuiStore } from "../../core/stores/GuiStore";
|
|
|
|
import { QuestEditorStore } from "../stores/QuestEditorStore";
|
2019-08-26 21:42:12 +08:00
|
|
|
|
2019-12-20 03:02:52 +08:00
|
|
|
export class QuestRunnerRendererView extends QuestRendererView {
|
2019-12-22 02:40:42 +08:00
|
|
|
constructor(gui_store: GuiStore, quest_editor_store: QuestEditorStore) {
|
|
|
|
super(
|
|
|
|
gui_store,
|
|
|
|
quest_editor_store,
|
|
|
|
"quest_editor_QuestRunnerRendererView",
|
|
|
|
new QuestRenderer(
|
|
|
|
renderer => new QuestRunnerModelManager(quest_editor_store.quest_runner, renderer),
|
|
|
|
),
|
|
|
|
);
|
2019-08-26 21:42:12 +08:00
|
|
|
|
2019-12-20 03:02:52 +08:00
|
|
|
this.renderer.init_camera_controls();
|
2019-09-14 21:20:36 +08:00
|
|
|
|
2019-12-20 01:54:01 +08:00
|
|
|
this.finalize_construction();
|
2019-08-26 21:42:12 +08:00
|
|
|
}
|
|
|
|
}
|