• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ParadoxGameConverters / Vic3ToHoI4 / 4189923376

pending completion
4189923376

Pull #265

github

GitHub
Merge e4a325e0a into eb87403de
Pull Request #265: Convert technology

154 of 154 new or added lines in 16 files covered. (100.0%)

1607 of 1796 relevant lines covered (89.48%)

86692.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/vic3_world/countries/vic3_country.h
1
#ifndef SRC_VIC3WORLD_COUNTRIES_VIC3COUNTRY_H
2
#define SRC_VIC3WORLD_COUNTRIES_VIC3COUNTRY_H
3

4

5

6
#include <string>
7

8
#include "external/commonItems/Color.h"
9

10

11

12
namespace vic3
13
{
14

15
struct CountryOptions
16
{
17
   std::string tag;
18
   commonItems::Color color;
19
   std::optional<int> capital_state;
20
};
21

22

23
class Country
24
{
25
  public:
26
   explicit Country(CountryOptions options):
×
27
       tag_(std::move(options.tag)),
×
28
       color_(std::move(options.color)),
×
29
       capital_state_(options.capital_state)
×
30
   {
31
   }
×
32

33
   [[nodiscard]] const std::string& GetTag() const { return tag_; }
×
34
   [[nodiscard]] const commonItems::Color& GetColor() const { return color_; }
×
35
   [[nodiscard]] const std::optional<int>& GetCapitalState() const { return capital_state_; }
×
36

37
   bool operator==(const Country&) const = default;
38

39
  private:
40
   std::string tag_;
41
   commonItems::Color color_;
42
   std::optional<int> capital_state_;
43
};
44

45
}  // namespace vic3
46

47

48

49
#endif  // SRC_VIC3WORLD_COUNTRIES_VIC3COUNTRY_H
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc