2021-06-30 10:15:55 +02:00
|
|
|
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";
|
2021-05-28 01:14:10 +02:00
|
|
|
|
2021-06-30 10:15:55 +02:00
|
|
|
export class WorkadventureSoundCommands extends IframeApiContribution<WorkadventureSoundCommands> {
|
|
|
|
callbacks = [];
|
2021-05-28 01:14:10 +02:00
|
|
|
|
|
|
|
loadSound(url: string): Sound {
|
|
|
|
return new Sound(url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-21 12:26:12 +02:00
|
|
|
export default new WorkadventureSoundCommands();
|