Skip to content

Commit b49ecd1

Browse files
committed
Add PlayerManager
1 parent 2b741a6 commit b49ecd1

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
#include "openvic-simulation/utility/Containers.hpp"
4+
#include "openvic-simulation/utility/Getters.hpp"
5+
6+
namespace OpenVic {
7+
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

Comments
 (0)