Splits inline sound markers from display text and records their visible positions.
import { parseSoundMarkers } from '@datamoc/mw_games/i18n';parseSoundMarkers('Strike! {sound:hit.wav}');// { text: 'Strike! ', cues: [{ path: 'hit.wav', index: 8 }] } Copy
import { parseSoundMarkers } from '@datamoc/mw_games/i18n';parseSoundMarkers('Strike! {sound:hit.wav}');// { text: 'Strike! ', cues: [{ path: 'hit.wav', index: 8 }] }
Splits inline sound markers from display text and records their visible positions.