aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Vic2PathSearch.cpp
Commit message (Collapse)AuthorAgeLines
* Implement rgo for new gameprepare_for_rgo wvpm2024-10-30-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Map province history rgo to production type for province instance output_goods back to ZERO_OR_ONE Link trade_goods in history to RGO instance for province. Other producer types as structs instead of classes Convert pops to equivalents & calculate rgo size Also convert pops when changing rgo Clean up Refactored RGO into part of ProvinceInstance ProductionType const& output_good Remove unused imports Clean up unused imports Restore constructor for ResourceGatheringOperation to initialise from savegame Move rgo size calculation to rgo Use terrain modifiers to calculate rgo size (placeholder code) Clean up Basic production & sales for rgo when initialising new game Use mutable pops Paychecks for owners, workers and slaves Clean up Simplify rgo instantiation Co-authored-by: Hop311 <Hop3114@gmail.com> Simplify good_to_rgo_production_type assignment Co-authored-by: Hop311 <Hop3114@gmail.com> Fix import Co-authored-by: Hop311 <Hop3114@gmail.com> min(3, great_powers.size()) Co-authored-by: Hop311 <Hop3114@gmail.com> Fix import Co-authored-by: Hop311 <Hop3114@gmail.com> Apply comments Log errors and return result when applying history Cleanup
* Fix handling empty `vic2_steam_lib_directory`fix/lexy-vdf-parse-error Spartan3222024-08-31-2/+4
|
* Cleanup: inheritance, const movable variables, code formattingformat-cleanup hop3112024-07-19-3/+3
|
* Update OpenVicProject/OpenVic-Dataloader@4a49007dryad zaaarf2024-07-07-2/+2
| | | | | Update .clang-format categories Move type_name and SelfType functioanlity to utility/Getters
* Harmonize empty result behavior for `_search_for_game_path` Spartan3222024-01-19-13/+30
| | | | | | | Enables actually searching for game path Reports info or warning depending on why it fails Remove StringUtils.hpp include in Vic2PathSearch.cpp Add <cstdint> to StringUtils.hpp
* Added case insensitive ordered set and map and IdentifierRegistry hop3112024-01-03-9/+2
|
* Add `https://github.com/Tessil/ordered-map` Spartan3222023-12-31-1/+2
| | | | | | | | | | | Add is_specialization_of to Utility.hpp Add OpenVic::ordered_map and OpenVic::ordered_set Change `std::map` to `ordered_map` Change `std::set to use `ordered_set` Add `set_callback_pointer(tsl::ordered_set<T const*>& set)` Add mutable_iterator to enable mutable value iterator for `tsl::ordered_map` Add std::hash<OpenVic::Date> implementation Enable deps/SCsub to expose dependency includes neccessary for inclusion
* Move Victoria 2 path searching to Vic2PathSearch.cpp Spartan3222023-12-04-0/+342
Move fshash and _cached_paths definitions to Dataloader::Search_for_game_path