summaryrefslogtreecommitdiff
path: root/src/newgrf_canal.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2010-08-03 17:48:03 +0000
committermichi_cc <michi_cc@openttd.org>2010-08-03 17:48:03 +0000
commitbd2f7e998c93d170e6fbf44ccdd01f95c24ce06f (patch)
tree9031abc834dc4ddd5c8997a43845bd1ffbe3db8b /src/newgrf_canal.h
parentf67c727c684e76572d38831f8550273c2441e9dd (diff)
downloadopenttd-bd2f7e998c93d170e6fbf44ccdd01f95c24ce06f.tar.xz
(svn r20352) -Add: [NewGRF] Support for property 09, feature 05, i.e alternate canal sprite layout.
Diffstat (limited to 'src/newgrf_canal.h')
-rw-r--r--src/newgrf_canal.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/newgrf_canal.h b/src/newgrf_canal.h
index e98015add..fba0979b5 100644
--- a/src/newgrf_canal.h
+++ b/src/newgrf_canal.h
@@ -31,12 +31,17 @@ enum CanalFeature {
CF_END,
};
+/** Flags controlling the display of canals. */
+enum CanalFeatureFlag {
+ CFF_HAS_FLAT_SPRITE = 0, ///< Additional flat ground sprite in the beginning.
+};
+/** Information about a water feature. */
struct WaterFeature {
- const SpriteGroup *group;
- const GRFFile *grffile; ///< newgrf where 'group' belongs to
- uint8 callback_mask; ///< Bitmask of canal callbacks that have to be called
- uint8 flags;
+ const SpriteGroup *group; ///< Sprite group to start resolving.
+ const GRFFile *grffile; ///< NewGRF where 'group' belongs to.
+ uint8 callback_mask; ///< Bitmask of canal callbacks that have to be called.
+ uint8 flags; ///< Flags controlling display.
};