Debug: Add sprite dump support to NewGRF objects

This commit is contained in:
Jonathan G Rennison
2021-12-03 18:13:58 +00:00
parent 5d56d12bf3
commit 76fcfd3efd
2 changed files with 12 additions and 0 deletions

View File

@@ -566,3 +566,8 @@ void TriggerObjectAnimation(Object *o, ObjectAnimationTrigger trigger, const Obj
TriggerObjectTileAnimation(o, tile, trigger, spec);
}
}
void DumpObjectSpriteGroup(const ObjectSpec *spec, std::function<void(const char *)> print)
{
DumpSpriteGroup(spec->grf_prop.spritegroup[0], std::move(print));
}