Add interfaces for play and stop sound interaction links

This commit is contained in:
2026-04-02 19:36:12 +02:00
parent 3f245e1307
commit a100e464a3

View File

@@ -66,6 +66,20 @@ export interface CreateToggleVisibilityInteractionLinkOptions {
visible?: boolean;
}
export interface CreatePlaySoundInteractionLinkOptions {
id?: string;
sourceEntityId: string;
trigger?: InteractionTriggerKind;
targetSoundEmitterId: string;
}
export interface CreateStopSoundInteractionLinkOptions {
id?: string;
sourceEntityId: string;
trigger?: InteractionTriggerKind;
targetSoundEmitterId: string;
}
function assertNonEmptyString(value: string, label: string) {
if (value.trim().length === 0) {
throw new Error(`${label} must be non-empty.`);