pub fn check<S, P, C: ShotCheck<S>>(
file: &str,
stem: &str,
raw: &CinematicFile<S, P>,
audio: &AudioManifest,
shots: C,
) -> Result<CinematicDef<C::Shot>, Vec<ContentError>>Expand description
Checks cinematic raw, read from file, whose name without its
extension is stem, with the music cues of audio and the game’s
checks of its shots. Reports every problem, in order:
- the id isn’t the file name;
- the length: a music cue that doesn’t exist, or seconds that aren’t
above 0 and at most
MAX_SECONDS; - no shots;
- for each shot, a time that isn’t one, a first shot not at 0, a shot
that doesn’t start after the one before it, or not before the end;
then the shot’s own problems (
ShotCheck::check); - and last,
ShotCheck::finish’s.
§Errors
Every problem, each attributed to file.