add background

This commit is contained in:
2026-09-06 01:01:45 +07:00
parent d8197fce73
commit 97ad956a6b
15 changed files with 843 additions and 410 deletions
@@ -104,6 +104,9 @@ func (a *scenarioArchive) Pack(
return nil, err
}
}
if err := addRef(story.Background); err != nil {
return nil, err
}
if story.Introduction != nil {
if err := addRef(story.Introduction.Audio); err != nil {
return nil, err
@@ -146,6 +149,7 @@ func (a *scenarioArchive) Pack(
story.Introduction.Audio = rewriteRef(story.Introduction.Audio, archivePathOf)
}
story.Background = rewriteRef(story.Background, archivePathOf)
doc := ScenarioJSON{
Version: Version,
Name: scenario.Name,