random sound selection for triggers

This commit is contained in:
2026-01-06 16:26:57 -05:00
parent b41b6df19e
commit 5124f77817
12 changed files with 104 additions and 59 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ namespace anm2ed::anm2
std::set<int> used;
for (auto& animation : animations.items)
for (auto& trigger : animation.triggers.frames)
if (content.sounds.contains(trigger.soundID)) used.insert(trigger.soundID);
for (auto& soundID : trigger.soundIDs)
if (content.sounds.contains(soundID)) used.insert(soundID);
std::set<int> unused;
for (auto& [id, sound] : content.sounds)