We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b741a6 commit b49ecd1Copy full SHA for b49ecd1
src/openvic-simulation/player/PlayerManager.cpp
@@ -0,0 +1,7 @@
1
+#include "PlayerManager.hpp"
2
+
3
+using namespace OpenVic;
4
5
+void PlayerManager::set_country(CountryInstance* instance) {
6
+ country = instance;
7
+}
src/openvic-simulation/player/PlayerManager.hpp
@@ -0,0 +1,17 @@
+#pragma once
+#include "openvic-simulation/utility/Containers.hpp"
+#include "openvic-simulation/utility/Getters.hpp"
+namespace OpenVic {
+ struct CountryInstance;
8
9
+ struct PlayerManager {
10
+ private:
11
+ memory::string PROPERTY(name);
12
+ CountryInstance* PROPERTY_PTR(country, nullptr);
13
14
+ public:
15
+ void set_country(CountryInstance* instance);
16
+ };
17
0 commit comments