Typed helpers for the audio plugin.
Creates helpers that validate sound keys and channel names against the world type W.
Call after .build() using typeof ecs.
const { createAudioSource } = createAudioHelpers<typeofecs>(); // Type-safe: 'boom' must be a registered asset, 'sfx' a valid channel createAudioSource('boom', 'sfx');
Typed helpers for the audio plugin. Creates helpers that validate sound keys and channel names against the world type W. Call after .build() using typeof ecs.
Example