diff options
author | Hop311 <Hop3114@gmail.com> | 2024-09-14 21:37:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 21:37:10 +0200 |
commit | d8c04cbe53188d4717f8c49f918e01657dbf3440 (patch) | |
tree | 7754de92a23f21e0546dcd09439bf0d3962b096f /src/openvic-simulation/politics/Rule.hpp | |
parent | 7a9206e3869fbb659d296b854c90f5c81755a5ca (diff) | |
parent | a424969548083a977480a6be0f078760a5789bbf (diff) |
Merge pull request #197 from OpenVicProject/country-unlock
CountryInstance unlock tech, invention, crime, building, unit, gas etc.
Diffstat (limited to 'src/openvic-simulation/politics/Rule.hpp')
-rw-r--r-- | src/openvic-simulation/politics/Rule.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/politics/Rule.hpp b/src/openvic-simulation/politics/Rule.hpp index 518c555..db0c926 100644 --- a/src/openvic-simulation/politics/Rule.hpp +++ b/src/openvic-simulation/politics/Rule.hpp @@ -42,7 +42,7 @@ namespace OpenVic { using rule_group_map_t = ordered_map<Rule::rule_group_t, rule_map_t>; private: - rule_group_map_t rule_groups; + rule_group_map_t PROPERTY(rule_groups); public: RuleSet() = default; @@ -59,6 +59,8 @@ namespace OpenVic { bool trim_and_resolve_conflicts(bool log); size_t get_rule_group_count() const; size_t get_rule_count() const; + void clear(); + bool empty() const; rule_map_t const& get_rule_group(Rule::rule_group_t group, bool* successful = nullptr) const; bool get_rule(Rule const* rule, bool* successful = nullptr) const; |