Skip to main content

scripts_from_parsed

Function scripts_from_parsed 

Source
pub fn scripts_from_parsed<D: Directive>(
    files: impl IntoIterator<Item = DialogueFile<D>>,
    rules: &impl SceneRules<D>,
) -> Result<Scripts<D>, Vec<ContentError>>
Expand description

Validates scenes already parsed (files, from the .dlg format Dlg, in file order) as scripts_from_sources does: each scene with check_scene and the game’s own SceneRules::scene_problems, then the scene ids across files.