• 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/hoi4_world/countries/hoi4_country.h
1
#ifndef SRC_HOI4WORLD_COUNTRIES_HOI4COUNTRY_H
2
#define SRC_HOI4WORLD_COUNTRIES_HOI4COUNTRY_H
3

4

5

6
#include <string>
7

8
#include "external/commonItems/Color.h"
9
#include "src/hoi4_world/technology/technologies.h"
10
#include "src/mappers/country/country_mapper.h"
11

12

13

14
namespace hoi4
15
{
16

17
struct CountryOptions
18
{
19
   std::string tag;
20
   commonItems::Color color;
21
   std::optional<int> capital_state;
22
   Technologies technologies;
23
};
24

25
class Country
26
{
27
  public:
28
   explicit Country(CountryOptions country_options):
×
29
       tag_(std::move(country_options.tag)),
×
30
       color_(std::move(country_options.color)),
×
31
       capital_state_(std::move(country_options.capital_state)),
×
32
       technologies_(std::move(country_options.technologies))
×
33
   {
34
   }
×
35

36
   [[nodiscard]] const std::string& GetTag() const { return tag_; }
×
37
   [[nodiscard]] const commonItems::Color& GetColor() const { return color_; }
×
38
   [[nodiscard]] const std::optional<int>& GetCapitalState() const { return capital_state_; }
×
39
   [[nodiscard]] const Technologies& GetTechnologies() const { return technologies_; }
×
40

41
   std::strong_ordering operator<=>(const Country&) const = default;
42

43
  private:
44
   std::string tag_;
45
   commonItems::Color color_;
46
   std::optional<int> capital_state_;
47
   Technologies technologies_;
48
};
49

50
}  // namespace hoi4
51

52

53

54
#endif  // SRC_HOI4WORLD_COUNTRIES_HOI4COUNTRY_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