Skip to content

Commit

Permalink
Add min_advertisement_action to citymania settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ldpl committed Apr 8, 2024
1 parent e7a0cb8 commit 27efad3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/citymania/cm_settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@

namespace citymania {

struct EconomySettings {
bool cashback_for_extra_land_clear;
bool cashback_for_bridges_and_tunnels;
bool cashback_for_foundations;
};

struct LimitsSettings {
uint16_t max_airports; ///< maximum number of airports per company, 0=unlimited
bool disable_canals;
uint16_t min_distance_between_docks; ///< docks can be build only x tiles apart another, 0=disable check
uint8_t min_advertisement_action; // minimum level of advertisement allowed
};

class CBRequirement {
public:
CargoID cargo_id;
Expand All @@ -27,19 +40,6 @@ class CBRequirement {
index{index}, name{name}, has_storage{decay < 100} {}
};

struct EconomySettings {
bool cashback_for_extra_land_clear;
bool cashback_for_bridges_and_tunnels;
bool cashback_for_foundations;
};

struct LimitsSettings {
uint16_t max_airports; ///< maximum number of airports per company, 0=unlimited
bool disable_canals;
uint16_t min_distance_between_docks; ///< docks can be build only x tiles apart another, 0=disable check
};


struct CBSettings {
uint8_t requirements_type; // 0 - regular 1 - income-based requirements (new cb only)
std::vector<CBRequirement> requirements;
Expand Down

0 comments on commit 27efad3

Please sign in to comment.