2019-08-26 21:42:12 +08:00
|
|
|
import { QuestRenderer } from "../rendering/QuestRenderer";
|
2019-12-28 06:33:34 +08:00
|
|
|
import { QuestRunner3DModelManager } from "../rendering/QuestRunner3DModelManager";
|
2019-12-20 03:02:52 +08:00
|
|
|
import { QuestRendererView } from "./QuestRendererView";
|
2019-12-22 02:40:42 +08:00
|
|
|
import { QuestEditorStore } from "../stores/QuestEditorStore";
|
2019-12-22 05:49:41 +08:00
|
|
|
import { AreaAssetLoader } from "../loading/AreaAssetLoader";
|
|
|
|
import { EntityAssetLoader } from "../loading/EntityAssetLoader";
|
2020-01-20 00:16:28 +08:00
|
|
|
import { DisposableThreeRenderer } from "../../core/rendering/ThreeRenderer";
|
2019-08-26 21:42:12 +08:00
|
|
|
|
2019-12-20 03:02:52 +08:00
|
|
|
export class QuestRunnerRendererView extends QuestRendererView {
|
2019-12-22 05:49:41 +08:00
|
|
|
constructor(
|
|
|
|
quest_editor_store: QuestEditorStore,
|
|
|
|
area_asset_loader: AreaAssetLoader,
|
|
|
|
entity_asset_loader: EntityAssetLoader,
|
2019-12-22 07:43:27 +08:00
|
|
|
three_renderer: DisposableThreeRenderer,
|
2019-12-22 05:49:41 +08:00
|
|
|
) {
|
2019-12-22 02:40:42 +08:00
|
|
|
super(
|
|
|
|
quest_editor_store,
|
|
|
|
"quest_editor_QuestRunnerRendererView",
|
|
|
|
new QuestRenderer(
|
2019-12-22 07:43:27 +08:00
|
|
|
three_renderer,
|
2019-12-22 05:49:41 +08:00
|
|
|
renderer =>
|
2019-12-28 06:33:34 +08:00
|
|
|
new QuestRunner3DModelManager(
|
2019-12-22 05:49:41 +08:00
|
|
|
quest_editor_store.quest_runner,
|
|
|
|
renderer,
|
|
|
|
area_asset_loader,
|
|
|
|
entity_asset_loader,
|
|
|
|
),
|
2019-12-22 02:40:42 +08:00
|
|
|
),
|
|
|
|
);
|
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
|
|
|
}
|
|
|
|
}
|