diff options
Diffstat (limited to 'src/town_type.h')
-rw-r--r-- | src/town_type.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/town_type.h b/src/town_type.h index dd2220b66..266e95214 100644 --- a/src/town_type.h +++ b/src/town_type.h @@ -87,10 +87,20 @@ enum TownLayout { NUM_TLS, ///< Number of town layouts }; - /** It needs to be 8bits, because we save and load it as such */ typedef SimpleTinyEnumT<TownLayout, byte> TownLayoutByte; // typedefing-enumification of TownLayout +/** Town founding setting values */ +enum TownFounding { + TF_BEGIN = 0, ///< Used for iterations and limit testing + TF_FORBIDDEN = 0, ///< Forbidden + TF_ALLOWED, ///< Allowed + TF_CUSTOM_LAYOUT, ///< Allowed, with custom town layout + TF_END, ///< Used for iterations and limit testing +}; +/** It needs to be 8bits, because we save and load it as such */ +typedef SimpleTinyEnumT<TownFounding, byte> TownFoundingByte; + enum { MAX_LENGTH_TOWN_NAME_BYTES = 31, ///< The maximum length of a town name in bytes including '\0' MAX_LENGTH_TOWN_NAME_PIXELS = 130, ///< The maximum length of a town name in pixels |