diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index b3e4de9c..f0769875 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -502,6 +502,12 @@ export class RuntimeHost { }, toggleBrushVisibility: (brushId, visible) => { this.applyToggleBrushVisibilityAction(brushId, visible); + }, + playAnimation: (instanceId, clipName) => { + this.applyPlayAnimationAction(instanceId, clipName); + }, + stopAnimation: (instanceId) => { + this.applyStopAnimationAction(instanceId); } }; } diff --git a/tests/domain/runtime-interaction-system.test.ts b/tests/domain/runtime-interaction-system.test.ts index 813887e7..9f3a4879 100644 --- a/tests/domain/runtime-interaction-system.test.ts +++ b/tests/domain/runtime-interaction-system.test.ts @@ -292,7 +292,9 @@ describe("RuntimeInteractionSystem", () => { }, toggleBrushVisibility: () => { throw new Error("Visibility should not dispatch for this click fixture."); - } + }, + playAnimation: () => {}, + stopAnimation: () => {} }); expect(dispatches).toEqual(["link-click-teleport:entity-teleport-main:8"]);