(svn r19654) -Codechange: Use Extract<> in more places.
This commit is contained in:
@@ -26,6 +26,7 @@ enum TownSize {
|
||||
|
||||
TSZ_END, ///< Number of available town sizes.
|
||||
};
|
||||
template <> struct EnumPropsT<TownSize> : MakeEnumPropsT<TownSize, byte, TSZ_SMALL, TSZ_END, TSZ_END, 2> {};
|
||||
|
||||
enum {
|
||||
/* These refer to the maximums, so Appalling is -1000 to -400
|
||||
@@ -89,6 +90,7 @@ enum TownLayout {
|
||||
|
||||
NUM_TLS, ///< Number of town layouts
|
||||
};
|
||||
template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_BEGIN, NUM_TLS, NUM_TLS, 3> {};
|
||||
/** It needs to be 8bits, because we save and load it as such */
|
||||
typedef SimpleTinyEnumT<TownLayout, byte> TownLayoutByte; // typedefing-enumification of TownLayout
|
||||
|
||||
|
Reference in New Issue
Block a user