aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation
Commit message (Collapse)AuthorAgeLines
* feat: calculate province distance using new sqrt functions zaaarf2024-01-02-164/+177
|
* feat: integer and fixed point square root functions zaaarf2024-01-02-2/+33
|
* Add `https://github.com/Tessil/ordered-map` Spartan3222023-12-31-63/+376
| | | | | | | | | | | 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
* Clock refactor + misc small fixes hop3112023-12-28-162/+178
|
* Merge pull request #107 from OpenVicProject/dataloading-issues-reforms-modifiers zaaarf2023-12-28-60/+108
|\ | | | | Dataloading Issue/Reform Modifiers and RuleSets
| * feat: rule and modifier loading for issues and reforms zaaarf2023-12-28-60/+108
| |
* | feat: loading climate.txt and continent.txt zaaarf2023-12-27-6/+131
| |
* | Made ProvinceSet use Province const* and updated Region loading hop3112023-12-27-113/+93
|/
* Added political/policy rules hop3112023-12-26-1/+204
|
* Merge pull request #103 from OpenVicProject/province-buildings Hop3112023-12-25-36/+86
|\ | | | | Province building scaffolding
| * Province building scaffolding hop3112023-12-25-36/+86
| |
* | 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`
* Merge pull request #100 from OpenVicProject/change/colour_t_to_struct George L. Albany2023-12-24-241/+618
|\
| * Change colour_t to be a strongly typed structure Spartan3222023-12-24-241/+618
| | | | | | | | | | | | | | 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`
* | Fixed TGC compatibility + misc cleanup hop3112023-12-23-91/+145
|/
* Additional adjacency loading BuildTools2023-12-17-158/+476
|
* Merge pull request #92 from OpenVicProject/dataloading-onactions Hop3112023-12-14-0/+65
|\ | | | | on_action dataloading
| * feat: on_action dataloading zaaarf2023-12-14-0/+65
| |
* | Removed modifier generating macros. hop3112023-12-14-87/+98
| |
* | Made pop type strata moddable hop3112023-12-13-43/+89
| |
* | Calculate distance between adjacencies wvpm2023-12-13-7/+25
| |
* | Merge pull request #89 from OpenVicProject/dataloading-pop-history Hop3112023-12-13-108/+311
|\ \ | | | | | | Pop History Loading (with the new system)
| * | Province pop history + country government flag override refactors hop3112023-12-13-131/+307
| | |
| * | feat: completed country history loading zaaarf2023-12-11-16/+23
| | |
| * | feat: implemented pop history loading zaaarf2023-12-10-53/+73
| |/
* / Calculate and assign province centers wvpm2023-12-11-21/+51
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed generate_and_load_province_adjacencies to initialize_province_adjacencies_and_center Calculate and assign province centers Ignore null index and substract 1 Moved province center calculation to load_map_images Revert "Renamed generate_and_load_province_adjacencies to initialize_province_adjacencies_and_center" This reverts commit 8b75bb8f1ea79e883b97987a3a85e254fa3e714b. Remove 0 as vector initial values. Revert "Wait for key to close headless" This reverts commit c7a4956de520a8c3ec53c3b68440b7056f9f5dd6. Use idx instead of province.index -1 Use array_index instead of pixel_index to identify province. Unindent set_terrain Reverted changes in _generate_province_adjacencies Move province center code out of set_terrain Divide by zero check Move province center logic back into set_terrain
* feat: improved identifier registry macro zaaarf2023-12-10-282/+92
|
* feat: decision dataloading zaaarf2023-12-10-0/+145
|
* Merge pull request #45 from OpenVicProject/event-loading Hop3112023-12-10-2/+242
|\ | | | | Skeleton Event Loading
| * Generic Event Loading BrickPi2023-12-10-2/+242
| |
* | Merge pull request #88 from OpenVicProject/vec-header Hop3112023-12-10-97/+114
|\ \ | | | | | | Make vec2_t header only (friend functions weren't being found)
| * | Make vec2_t header only (friend functions weren't being found) hop3112023-12-09-97/+114
| |/
* | feat: added missing country history keys (except decisions) zaaarf2023-12-10-21/+51
| |
* | feat: loading techs, inventions and foreign investments in country history zaaarf2023-12-09-7/+38
|/
* Meta regions being used to make states fix hop3112023-12-08-9/+10
|
* Vec/set callbacks + crime file + prov building pos hop3112023-12-07-281/+290
|
* Merge pull request #83 from OpenVicProject/dataloading-inventions zaaarf2023-12-05-48/+284
|\ | | | | Dataloading inventions
| * feat: implemented invention dataloading zaaarf2023-12-05-48/+284
| |
* | Merge pull request #84 from OpenVicProject/move/vic2-path-search George L. Albany2023-12-05-316/+342
|\ \
| * | Move Victoria 2 path searching to Vic2PathSearch.cpp Spartan3222023-12-04-316/+342
| |/ | | | | | | Move fshash and _cached_paths definitions to Dataloader::Search_for_game_path
* | Merge pull request #79 from OpenVicProject/states BrickPi2023-12-05-2/+145
|\ \ | |/ |/|
| * States First Pass Joel Machens2023-11-28-2/+140
| |
* | Crime+event modifier loading + misc UI backend hop3112023-12-02-332/+573
| |
* | feat: implemented modifier identifier flattening, added/fixed remaining tech ↵ zaaarf2023-12-02-103/+262
| | | | | | | | modifiers effects
* | feat: implemented basic technology and school loading (modifier processing ↵ zaaarf2023-10-22-0/+238
| | | | | | | | is still missing)
* | feat: rebel type parsing zaaarf2023-12-01-0/+230
| |
* | feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX zaaarf2023-12-01-100/+65
|/
* chore: change some lingering lowerCamelCase to snake_case zaaarf2023-11-22-66/+62
|
* chore: use PROPERTY and its variants when possible zaaarf2023-11-22-1059/+179
|
* feat: allow (optionally) specifying access levels and custom names for ↵ zaaarf2023-11-22-9/+17
| | | | PROPERTY and PROPERTY_RW macros