bfcdd31ed2
The generation was broken due to the refactoring in several classes (some of them where not properly exported). Also, trying to generate the NPM package on every build now (to detect issues).
16 lines
564 B
TypeScript
16 lines
564 B
TypeScript
import type { LoadSoundEvent } from "../Events/LoadSoundEvent";
|
|
import type { PlaySoundEvent } from "../Events/PlaySoundEvent";
|
|
import type { StopSoundEvent } from "../Events/StopSoundEvent";
|
|
import { IframeApiContribution, sendToWorkadventure } from "./IframeApiContribution";
|
|
import { Sound } from "./Sound/Sound";
|
|
|
|
export class WorkadventureSoundCommands extends IframeApiContribution<WorkadventureSoundCommands> {
|
|
callbacks = [];
|
|
|
|
loadSound(url: string): Sound {
|
|
return new Sound(url);
|
|
}
|
|
}
|
|
|
|
export default new WorkadventureSoundCommands();
|