diff options
author | zaaarf <zaaarf@proton.me> | 2023-09-20 14:03:25 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-09-20 14:03:25 +0200 |
commit | ad17b83930d83c3bbe5d58cf30c54fe88ac5d927 (patch) | |
tree | 1f1f1d395f7d120ab7a23c42827f6c20253d48ba /src/openvic-simulation/politics/PartyIssue.hpp | |
parent | 63e5866381234d6627174869b7a27770daef20fd (diff) |
feat: merged PartyIssue and PoliticalReform into single Issue structure
Diffstat (limited to 'src/openvic-simulation/politics/PartyIssue.hpp')
-rw-r--r-- | src/openvic-simulation/politics/PartyIssue.hpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/openvic-simulation/politics/PartyIssue.hpp b/src/openvic-simulation/politics/PartyIssue.hpp deleted file mode 100644 index 8b0acdc..0000000 --- a/src/openvic-simulation/politics/PartyIssue.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once - -#include "types/IdentifierRegistry.hpp" - -namespace OpenVic { - struct PartyIssueManager; - - struct PartyIssueGroup : HasIdentifier { - friend struct PartyIssueManager; - - private: - PartyIssueGroup(const std::string_view new_identifier); - - public: - PartyIssueGroup(PartyIssueGroup&&) = default; - }; - - struct PartyIssue : HasIdentifier { - friend struct PartyIssueManager; - - private: - PartyIssueGroup const& group; - - //TODO - modifiers when party with issue is in power - - PartyIssue(const std::string_view new_identifier, PartyIssueGroup const& new_group); - - public: - PartyIssue(PartyIssue&&) = default; - }; - - struct PartyIssueManager { - private: - IdentifierRegistry<PartyIssueGroup> party_issue_groups; - IdentifierRegistry<PartyIssue> party_issues; - - public: - PartyIssueManager(); - - bool add_party_issue_group(const std::string_view identifier); - IDENTIFIER_REGISTRY_ACCESSORS(PartyIssueGroup, party_issue_group) - - bool add_party_issue(const std::string_view identifier, PartyIssueGroup const* group); - IDENTIFIER_REGISTRY_ACCESSORS(PartyIssue, party_issue) - - //TODO - loaders - }; -}
\ No newline at end of file |