blob: 8b0acdc3dd95cd4993110fd034769ba9d7f85bd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#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
};
}
|