nitro-react/src/api/utils/PlaySound.ts
2021-11-25 23:16:00 -06:00

15 lines
589 B
TypeScript

import { NitroSoundEvent } from '@nitrots/nitro-renderer/src/nitro/events/NitroSoundEvent';
import { dispatchMainEvent } from '../../hooks';
export function PlaySound(sampleCode: string): void
{
dispatchMainEvent(new NitroSoundEvent(NitroSoundEvent.PLAY_SOUND, sampleCode));
}
export const CAMERA_SHUTTER = 'camera_shutter';
export const CREDITS = 'credits';
export const DUCKETS = 'duckets';
export const MESSENGER_NEW_THREAD = 'messenger_new_thread';
export const MESSENGER_MESSAGE_RECEIVED = 'messenger_message_received';
export const MODTOOLS_NEW_TICKET = 'modtools_new_ticket';