@@ -129,6 +129,39 @@ static bool run_headless(Dataloader::path_vector_t const& roots, bool run_tests)
129129 // ret = false;
130130 // }
131131
132+ Pop const & pop = *game_manager.get_instance_manager ()->get_map_instance ().get_province_instance_by_index (300 )->get_pops ().begin ();
133+
134+ Logger::info (
135+ " Pop has type " , pop.get_type ()->get_identifier (),
136+ " , size " , pop.get_size (),
137+ " , culture " , pop.get_culture ().get_identifier (),
138+ " , religion " , pop.get_religion ().get_identifier (),
139+ " , ideology:"
140+ );
141+ for (auto [ideology, support] : pop.get_ideology_distribution ()) {
142+ Logger::info (" " , ideology.get_identifier (), " - " , support);
143+ }
144+
145+ ProvinceInstance const & province = *pop.get_location ();
146+ Logger::info (" Province " , province.get_identifier (), " has " , province.get_total_population (), " pops with ideology:" );
147+ for (auto [ideology, support] : province.get_ideology_distribution ()) {
148+ Logger::info (" " , ideology.get_identifier (), " - " , support);
149+ }
150+
151+ State const & state = *province.get_state ();
152+ Logger::info (" State " , state.get_identifier (), " has " , state.get_total_population (), " pops with ideology:" );
153+ for (auto [ideology, support] : state.get_ideology_distribution ()) {
154+ Logger::info (" " , ideology.get_identifier (), " - " , support);
155+ }
156+
157+ CountryInstance const & country = *state.get_owner ();
158+ Logger::info (" Country " , country.get_identifier (), " has " , country.get_total_population (), " pops with ideology:" );
159+ for (auto [ideology, support] : country.get_ideology_distribution ()) {
160+ Logger::info (" " , ideology.get_identifier (), " - " , support);
161+ }
162+
163+ Logger::info (" National value of " , country.get_identifier (), " is " , country.get_national_value ());
164+
132165 return ret;
133166}
134167
0 commit comments