aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility
Commit message (Collapse)AuthorAgeLines
* Add modifier effect variants based on the type of modifier being parsedresultant-modifier hop3112024-10-19-0/+4
|
* ModifierEffect and Rule localisation keysrule-modifier-locale-keys hop3112024-09-19-0/+16
|
* Cleanup: inheritance, const movable variables, code formattingformat-cleanup hop3112024-07-19-22/+24
|
* Update OpenVicProject/OpenVic-Dataloader@4a49007dryad zaaarf2024-07-07-27/+120
| | | | | Update .clang-format categories Move type_name and SelfType functioanlity to utility/Getters
* Fixed point rounding functions and sources cleanup hop3112024-02-19-1/+1
|
* Reworked ReturnByValue, warn_or_error, expect_date_[identifier_or_]string hop3112024-02-04-15/+26
|
* Added StringMapCase and case insensitive expect_dictionary_keyscase-rework hop3112024-01-25-0/+8
|
* Made Date constexpr so that PROPERTY getters can be constexprconstexpr-date hop3112024-01-24-6/+10
|
* Added reserve_more, expect_dictionary_key[s|_map]_reserve_length[_and_default]reserve_more hop3112024-01-23-1/+0
|
* Miscellaneous bug fixes and format cleanupmisc-changes hop3112024-01-22-4/+4
|
* Harmonize empty result behavior for `_search_for_game_path` Spartan3222024-01-19-0/+1
| | | | | | | 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
* Merge pull request #119 from OpenVicProject/add/country-relations George L. Albany2024-01-19-11/+120
|\
| * Add skeleton CountryRelationManager Spartan3222024-01-18-11/+121
| | | | | | | | | | | | | | | | | | Change `DiplomaticAction::Argument` to refer to `CountryInstance*` instead of `Country*` Add `GameManager&` argument to `DiplomaticActionManager::setup_diplomatic_actions` Add some ErrorMacros, likely and unlikely macros and stringization macros (based on Godot's macros) Implement `increase_relations` DiplomaticAction commit function Implement `decrease_relations` DiplomaticAction commit function Fix include StringUtils.hpp errors
* | Parse missing variables, Logger counting, misc cleanup hop3112024-01-18-1/+8
|/
* Added case insensitive ordered set and map and IdentifierRegistry hop3112024-01-03-5/+34
|
* feat: integer and fixed point square root functions zaaarf2024-01-02-2/+27
|
* Add `https://github.com/Tessil/ordered-map` Spartan3222023-12-31-1/+179
| | | | | | | | | | | 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
* Add `BMP::palette_colour_t` as uint32_t Spartan3222023-12-25-5/+9
| | | | | | Change `BMP::palette` to `std::vector<palette_colour_t>` Change `BMP::PALETTE_COLOUR_SIZE` to use `sizeof(palette_colour_t)` Silence warning for `header.num_colours - 1 >> header.bits_per_pixel == 0`
* Change colour_t to be a strongly typed structure Spartan3222023-12-24-3/+20
| | | | | | | Make RGB default of `colour_t` Distinguish RGB and ARGB colors by type and colour_traits Add `_colour` and `_argb` colour user-defined literals Add `OpenVic::utility::unreachable`
* Crime+event modifier loading + misc UI backend hop3112023-12-02-7/+7
|
* feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX zaaarf2023-12-01-6/+11
|
* chore: use PROPERTY and its variants when possible zaaarf2023-11-22-1/+1
|
* feat: allow (optionally) specifying access levels and custom names for ↵ zaaarf2023-11-22-9/+17
| | | | PROPERTY and PROPERTY_RW macros
* Merge pull request #71 from OpenVicProject/gui-loading Hop3112023-11-13-0/+32
|\ | | | | GUI and GFX file loading
| * GUI and GFX file loading hop3112023-11-12-0/+32
| |
* | Added CountryInstance & Country History Apply Func Joel Machens2023-11-13-3/+10
|/
* Cross-platform file lookup (case and separator) hop3112023-11-07-40/+83
|
* History loading changes + PROPERTY macro hop3112023-11-07-0/+66
|
* Country: datatypes + TGC compat changes hop3112023-11-07-18/+19
|
* Clang-format formatting (with manual cleanup) hop3112023-10-29-14/+20
|
* Astyle formatting (with manual cleanup) hop3112023-10-29-27/+69
|
* Further CLI and modifier reading work hop3112023-10-14-21/+28
|
* TGC compatibility fixes + other cleanup hop3112023-10-13-15/+15
|
* Lots of accumulated changes hop3112023-10-12-1/+2
|
* Add static `Dataloader::search_for_game_path(fs::path)` Spartan3222023-10-12-0/+56
| | | | | | | | | | | Searches for Victoria 2 according to the supplied path If supplied path is empty, presumes Steam install according to platform environment variables If invalid supplied path, falls back to empty path behavior Supports Steam install on Windows, Mac, Linux, and FreeBSD Supports Windows registry Update .clang-format categories to include lexy-vdf Add Utility/ConstexprIntToStr.hpp
* Removed unnecessary `const std::string_view`s Hop3112023-09-28-2/+2
|
* Adding terrain image/type loading Hop3112023-09-25-21/+89
|
* 2D-vectors (positions.txt needs fixed point vecs) Hop3112023-09-16-2/+2
|
* Format cleanup and req comments Hop3112023-09-09-1/+1
|
* PR feedback + Logger::warning Hop3112023-09-09-0/+3
|
* More refactoring and duplicate code removal Hop3112023-09-08-0/+475