Skip to main content

scripts_from_sources

Function scripts_from_sources 

Source
pub fn scripts_from_sources<D: Directive, F: AsRef<str>>(
    files: &[(F, &str)],
    rules: &impl SceneRules<D>,
) -> Result<Scripts<D>, Vec<ContentError>>
Expand description

Parses and validates dialogue files given as (file name, source) pairs, each scene with check_scene and the game’s own SceneRules::scene_problems, then the scene ids across files. Reports every problem, ordered by file and line.