aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/PartyIssue.cpp
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-09-20 14:03:25 +0200
committer zaaarf <zaaarf@proton.me>2023-09-20 14:03:25 +0200
commitad17b83930d83c3bbe5d58cf30c54fe88ac5d927 (patch)
tree1f1f1d395f7d120ab7a23c42827f6c20253d48ba /src/openvic-simulation/politics/PartyIssue.cpp
parent63e5866381234d6627174869b7a27770daef20fd (diff)
feat: merged PartyIssue and PoliticalReform into single Issue structure
Diffstat (limited to 'src/openvic-simulation/politics/PartyIssue.cpp')
-rw-r--r--src/openvic-simulation/politics/PartyIssue.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/openvic-simulation/politics/PartyIssue.cpp b/src/openvic-simulation/politics/PartyIssue.cpp
deleted file mode 100644
index 04e0f2f..0000000
--- a/src/openvic-simulation/politics/PartyIssue.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "PartyIssue.hpp"
-
-using namespace OpenVic;
-
-PartyIssueGroup::PartyIssueGroup(const std::string_view new_identifier) : HasIdentifier { new_identifier } {}
-
-PartyIssue::PartyIssue(const std::string_view new_identifier, PartyIssueGroup const& new_group)
- : HasIdentifier { new_identifier }, group { new_group } {}
-
-PartyIssueManager::PartyIssueManager() : party_issue_groups { "party issue groups" }, party_issues { "party issues" } {}
-
-bool PartyIssueManager::add_party_issue_group(const std::string_view identifier) {
- if (identifier.empty()) {
- Logger::error("Invalid party issue group identifier - empty!");
- return false;
- }
-
- return party_issue_groups.add_item({ identifier });
-}
-
-bool PartyIssueManager::add_party_issue(const std::string_view identifier, PartyIssueGroup const* group) {
- if (identifier.empty()) {
- Logger::error("Invalid party issue identifier - empty!");
- return false;
- }
-
- if (group == nullptr) {
- Logger::error("Null party issue group for ", identifier);
- return false;
- }
-
- return party_issues.add_item({ identifier, *group });
-} \ No newline at end of file