Add: Setting to allow placing houses manually in-game (#13266)

This commit is contained in:
Tyler Trahan
2025-02-09 13:34:31 -05:00
committed by GitHub
parent 01b639bb23
commit b2f5a4901b
6 changed files with 57 additions and 12 deletions

View File

@@ -91,6 +91,13 @@ enum RightClickClose : uint8_t {
RCC_YES_EXCEPT_STICKY,
};
/** Possible values for "place_houses" setting. */
enum PlaceHouses : uint8_t {
PH_FORBIDDEN = 0,
PH_ALLOWED,
PH_ALLOWED_CONSTRUCTED,
};
/** Settings related to the difficulty of the game */
struct DifficultySettings {
uint8_t competitor_start_time; ///< Unused value, used to load old savegames.
@@ -529,6 +536,7 @@ struct EconomySettings {
TownCargoGenMode town_cargogen_mode; ///< algorithm for generating cargo from houses, @see TownCargoGenMode
bool allow_town_roads; ///< towns are allowed to build roads (always allowed when generating world / in SE)
TownFounding found_town; ///< town founding.
PlaceHouses place_houses; ///< players are allowed to place town houses.
bool station_noise_level; ///< build new airports when the town noise level is still within accepted limits
uint16_t town_noise_population[4]; ///< population to base decision on noise evaluation (@see town_council_tolerance)
bool allow_town_level_crossings; ///< towns are allowed to build level crossings