Add play and stop animation methods to RuntimeHost and update tests
This commit is contained in:
@@ -502,6 +502,12 @@ export class RuntimeHost {
|
|||||||
},
|
},
|
||||||
toggleBrushVisibility: (brushId, visible) => {
|
toggleBrushVisibility: (brushId, visible) => {
|
||||||
this.applyToggleBrushVisibilityAction(brushId, visible);
|
this.applyToggleBrushVisibilityAction(brushId, visible);
|
||||||
|
},
|
||||||
|
playAnimation: (instanceId, clipName) => {
|
||||||
|
this.applyPlayAnimationAction(instanceId, clipName);
|
||||||
|
},
|
||||||
|
stopAnimation: (instanceId) => {
|
||||||
|
this.applyStopAnimationAction(instanceId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -292,7 +292,9 @@ describe("RuntimeInteractionSystem", () => {
|
|||||||
},
|
},
|
||||||
toggleBrushVisibility: () => {
|
toggleBrushVisibility: () => {
|
||||||
throw new Error("Visibility should not dispatch for this click fixture.");
|
throw new Error("Visibility should not dispatch for this click fixture.");
|
||||||
}
|
},
|
||||||
|
playAnimation: () => {},
|
||||||
|
stopAnimation: () => {}
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(dispatches).toEqual(["link-click-teleport:entity-teleport-main:8"]);
|
expect(dispatches).toEqual(["link-click-teleport:entity-teleport-main:8"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user