diff options
author | frosch <frosch@openttd.org> | 2010-04-11 15:44:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-11 15:44:16 +0000 |
commit | 0d4e6c46ff4af97205823014e0b4300c7a2c3044 (patch) | |
tree | be9825c3e22820b5a09cc8d31daa9be6b9127979 /src/road_type.h | |
parent | 03c609f019f437f4fb7e252a2345d4b62ab930e8 (diff) | |
download | openttd-0d4e6c46ff4af97205823014e0b4300c7a2c3044.tar.xz |
(svn r19605) -Codechange: Merge ExtractBits into EnumPropsT.
Diffstat (limited to 'src/road_type.h')
-rw-r--r-- | src/road_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/road_type.h b/src/road_type.h index 86ca4de78..be16c2315 100644 --- a/src/road_type.h +++ b/src/road_type.h @@ -27,6 +27,7 @@ enum RoadType { INVALID_ROADTYPE = 0xFF ///< flag for invalid roadtype }; DECLARE_POSTFIX_INCREMENT(RoadType) +template <> struct EnumPropsT<RoadType> : MakeEnumPropsT<RoadType, byte, ROADTYPE_BEGIN, ROADTYPE_END, INVALID_ROADTYPE> {}; /** * The different roadtypes we support, but then a bitmask of them @@ -67,5 +68,6 @@ enum RoadBits { ROAD_ALL = ROAD_X | ROAD_Y ///< Full 4-way crossing }; DECLARE_ENUM_AS_BIT_SET(RoadBits) +template <> struct EnumPropsT<RoadBits> : MakeEnumPropsT<RoadBits, byte, ROAD_NONE, ROAD_ALL, ROAD_NONE, 4> {}; #endif /* ROAD_TYPE_H */ |