From 6e7bc106f040ed4333759bcf13c012c2e9433b08 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 31 Jul 2026 12:15:50 +0900 Subject: [PATCH] wip --- .../frontend/src/world/MultiplayerEngineControllerBase.ts | 2 +- packages/frontend/src/world/controller.ts | 5 +++-- packages/frontend/src/world/room/controller.ts | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/world/MultiplayerEngineControllerBase.ts b/packages/frontend/src/world/MultiplayerEngineControllerBase.ts index c9c1c94913..e2535c7a77 100644 --- a/packages/frontend/src/world/MultiplayerEngineControllerBase.ts +++ b/packages/frontend/src/world/MultiplayerEngineControllerBase.ts @@ -16,7 +16,7 @@ export type MultiplayerEngineControllerBaseOptions = { antialias: boolean; }; -export abstract class MultiplayerEngineControllerBase> extends EngineControllerBase { +export abstract class MultiplayerEngineControllerBase, E> extends EngineControllerBase { public myPlayerState = shallowRef({ position: [0, 0, 0], rotation: [0, 0, 0], diff --git a/packages/frontend/src/world/controller.ts b/packages/frontend/src/world/controller.ts index 15b0488df4..2c45d6a867 100644 --- a/packages/frontend/src/world/controller.ts +++ b/packages/frontend/src/world/controller.ts @@ -7,7 +7,6 @@ import { shallowRef } from 'vue'; import { MultiplayerEngineControllerBase } from './MultiplayerEngineControllerBase.js'; import { Wasd } from './Wasd.js'; import type { WorldEngine } from 'misskey-world-engine/src/engine.js'; -import type { PlayerProfile, PlayerState } from 'misskey-world-engine/src/PlayerContainer.js'; export type WorldEngineControllerOptions = { workerMode?: boolean; @@ -18,7 +17,9 @@ export type WorldEngineControllerOptions = { }; // 抽象化レイヤー -export class WorldEngineController extends MultiplayerEngineControllerBase { +export class WorldEngineController extends MultiplayerEngineControllerBase { constructor(options: WorldEngineControllerOptions) { super(options, new Wasd({ setCameraMoveVector: (vec, dash) => { diff --git a/packages/frontend/src/world/room/controller.ts b/packages/frontend/src/world/room/controller.ts index b8ade2a3be..09e3bfb62b 100644 --- a/packages/frontend/src/world/room/controller.ts +++ b/packages/frontend/src/world/room/controller.ts @@ -11,7 +11,6 @@ import type { ShallowRef } from 'vue'; import type { RoomState_InstalledFurniture } from 'misskey-world/src/room/furniture.js'; import type { RoomEngine } from 'misskey-world-engine/src/room/engine.js'; import type { RoomAttachments, RoomState } from 'misskey-world/src/room/type.js'; -import type { PlayerProfile, PlayerState } from 'misskey-world-engine/src/PlayerContainer.js'; import * as sound from '@/utility/sound.js'; import { deepEqual } from '@/utility/deep-equal.js'; import { deepClone } from '@/utility/clone.js';