From a6aa3a9a1868ee6a67c0ea2c58759957f1840557 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 19:15:43 +0200 Subject: [PATCH] Remove unused player animation hooks and update tests --- src/runtime-three/runtime-host.ts | 5 ----- tests/unit/first-person-navigation-controller.test.ts | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 3faced08..4e6d1e0f 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -66,7 +66,6 @@ import { FirstPersonNavigationController } from "./first-person-navigation-contr import type { NavigationController, PlayerControllerTelemetry, - RuntimePlayerAnimationHookState, RuntimeControllerContext, RuntimePlayerAudioHookState, RuntimePlayerVolumeState @@ -208,8 +207,6 @@ export class RuntimeHost { null; private currentInteractionPrompt: RuntimeInteractionPrompt | null = null; private currentSceneLoadState: RuntimeSceneLoadState | null = null; - private currentPlayerAnimationHooks: RuntimePlayerAnimationHookState | null = - null; private currentPlayerAudioHooks: RuntimePlayerAudioHookState | null = null; private cameraEffectVerticalOffset = 0; private cameraEffectVerticalVelocity = 0; @@ -292,7 +289,6 @@ export class RuntimeHost { }, setPlayerControllerTelemetry: (telemetry) => { this.currentPlayerControllerTelemetry = telemetry; - this.currentPlayerAnimationHooks = telemetry?.hooks.animation ?? null; this.currentPlayerAudioHooks = telemetry?.hooks.audio ?? null; this.playerControllerTelemetryHandler?.(telemetry); } @@ -400,7 +396,6 @@ export class RuntimeHost { this.interactionSystem.reset(); this.setInteractionPrompt(null); this.currentPlayerControllerTelemetry = null; - this.currentPlayerAnimationHooks = null; this.currentPlayerAudioHooks = null; this.playerControllerTelemetryHandler?.(null); this.currentRuntimeMessage = null; diff --git a/tests/unit/first-person-navigation-controller.test.ts b/tests/unit/first-person-navigation-controller.test.ts index 45a09bb1..185f84df 100644 --- a/tests/unit/first-person-navigation-controller.test.ts +++ b/tests/unit/first-person-navigation-controller.test.ts @@ -343,6 +343,7 @@ describe("FirstPersonNavigationController", () => { const controller = new FirstPersonNavigationController(); controller.activate(context); + controller.update(0.1); window.dispatchEvent(new KeyboardEvent("keydown", { code: "Space" })); controller.update(0.1);