SoundChooser beta
TypeAlias of @v12-engine/client
ts
export type SoundChooser = (event: SessionEvent, context: SoundContext) => string | null | undefined | {
sound: string;
at?: Vec2;
volume?: number;
};What an event of the session sounds like, decided in code (SoundSet.soundFor): a scream for a death by a dragon, a clang on a hit on plate, nothing in a cutscene. A sound's name, or { sound, at, volume }; null for silence; nothing for what the set declares