Skip to main content

refresh_transcripts

Function refresh_transcripts 

Source
pub fn refresh_transcripts<M: Send + Sync + 'static>(
    events: MessageReader<'_, '_, AssetEvent<LineTablesAsset>>,
    flows: Query<'_, '_, (&BrinkFlow<M>, &BrinkProgram<M>, Ref<'_, BrinkLocale<M>>, &mut BrinkTranscript<M>)>,
    programs: Res<'_, Assets<ProgramAsset>>,
    line_tables: Res<'_, Assets<LineTablesAsset>>,
)
Expand description

Plugin-managed system: re-render BrinkTranscript<M> for any flow entity whose transcript has grown, whose locale handle changed, or whose locale’s LineTablesAsset content was hot-reloaded.