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

@@ -720,12 +720,12 @@ bool IndustryTemporarilyRefusesCargo(Industry *ind, CargoID cargo_type)
return false;
}
void DumpIndustrySpriteGroup(const IndustrySpec *spec, DumpSpriteGroupPrinter print)
void DumpIndustrySpriteGroup(const IndustrySpec *spec, SpriteGroupDumper &dumper)
{
DumpSpriteGroup(spec->grf_prop.spritegroup[0], std::move(print));
dumper.DumpSpriteGroup(spec->grf_prop.spritegroup[0], 0);
}
void DumpIndustryTileSpriteGroup(const IndustryTileSpec *spec, DumpSpriteGroupPrinter print)
void DumpIndustryTileSpriteGroup(const IndustryTileSpec *spec, SpriteGroupDumper &dumper)
{
DumpSpriteGroup(spec->grf_prop.spritegroup[0], std::move(print));
dumper.DumpSpriteGroup(spec->grf_prop.spritegroup[0], 0);
}