Debug: Add general mechanism to dump a sprite group chain

This commit is contained in:
Jonathan G Rennison
2021-05-21 19:35:22 +01:00
parent 12e00624ba
commit 6f10b01ba2
3 changed files with 194 additions and 1 deletions

View File

@@ -158,6 +158,8 @@ enum DeterministicSpriteGroupAdjustOperation {
DSGA_OP_SHL, ///< a << b
DSGA_OP_SHR, ///< (unsigned) a >> b
DSGA_OP_SAR, ///< (signed) a >> b
DSGA_OP_END,
};
@@ -435,4 +437,6 @@ struct ResolverObject {
virtual uint32 GetDebugID() const { return 0; }
};
void DumpSpriteGroup(const SpriteGroup *sg, std::function<void(const char *)> print);
#endif /* NEWGRF_SPRITEGROUP_H */