Debug: Change interfaces using SpriteGroupDumper

Pass SpriteGroupDumper ref instead of print function
Make use_shadows non-static
This commit is contained in:
Jonathan G Rennison
2023-12-27 23:46:45 +00:00
parent 8c4d36a498
commit 5b6c0c1f2e
14 changed files with 83 additions and 96 deletions

View File

@@ -639,7 +639,7 @@ void TriggerObjectAnimation(Object *o, ObjectAnimationTrigger trigger, const Obj
}
}
void DumpObjectSpriteGroup(const ObjectSpec *spec, DumpSpriteGroupPrinter print)
void DumpObjectSpriteGroup(const ObjectSpec *spec, SpriteGroupDumper &dumper)
{
DumpSpriteGroup(spec->grf_prop.spritegroup[0], std::move(print));
dumper.DumpSpriteGroup(spec->grf_prop.spritegroup[0], 0);
}