summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-29 16:56:22 +0000
committerfrosch <frosch@openttd.org>2011-05-29 16:56:22 +0000
commita241a4ce97ffe3f519ecf656ad10c518d646d423 (patch)
treeb6319bc947c6ae62a4822ed0368228f3e5f4e2ca /src/newgrf_spritegroup.h
parent5b449145f7983d44d73195b8a18e4a2da721ee71 (diff)
downloadopenttd-a241a4ce97ffe3f519ecf656ad10c518d646d423.tar.xz
(svn r22518) -Feature: [NewGRF] Advanced sprite layouts with register modifiers.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r--src/newgrf_spritegroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h
index 89be1dc08..3a13a3bbe 100644
--- a/src/newgrf_spritegroup.h
+++ b/src/newgrf_spritegroup.h
@@ -278,12 +278,17 @@ struct ResultSpriteGroup : SpriteGroup {
byte GetNumResults() const { return this->num_sprites; }
};
+/**
+ * Action 2 sprite layout for houses, industry tiles, objects and airport tiles.
+ */
struct TileLayoutSpriteGroup : SpriteGroup {
TileLayoutSpriteGroup() : SpriteGroup(SGT_TILELAYOUT) {}
~TileLayoutSpriteGroup() {}
byte num_building_stages; ///< Number of building stages to show for this house/industry tile
NewGRFSpriteLayout dts;
+
+ const DrawTileSprites *ProcessRegisters(uint8 *stage) const;
};
struct IndustryProductionSpriteGroup : SpriteGroup {