Commit Graph
62 Commits
Author SHA1 Message Date
Aaron van Geffen a99ffd9736 Move .suggestedGuestMaximum into ParkData struct 2025-08-13 23:20:59 +02:00
Aaron van Geffen b40c5bd3b4 Move .totalRideValueForMoney into ParkData struct 2025-08-13 23:19:54 +02:00
Aaron van Geffen 681a489d15 Move .guest(ChangeModifier|GenerationProbability) into ParkData struct 2025-08-13 23:18:29 +02:00
Aaron van Geffen ee37cb1411 Move .currentAwards into ParkData struct 2025-08-13 23:05:14 +02:00
Aaron van Geffen 21504650d3 Move .total(IncomeFrom|)Admissions into ParkData struct 2025-08-13 23:02:11 +02:00
Aaron van Geffen e300ca8277 Move .maxBankLoan into ParkData struct 2025-08-13 22:29:25 +02:00
Aaron van Geffen 68a4991971 Move .bankLoan into ParkData struct 2025-08-13 21:24:06 +02:00
Aaron van Geffen e5ead99c83 Move .numGuestsInPark, .guestsInParkHistory into ParkData struct 2025-08-13 21:20:13 +02:00
Aaron van Geffen 0162b09236 Move .expenditureTable into ParkData struct 2025-08-13 21:14:23 +02:00
Aaron van Geffen 94f40e46ef Move .companyValue into ParkData struct 2025-08-13 21:08:00 +02:00
Aaron van Geffen b842537616 Move .cash, .cashHistory into ParkData struct 2025-08-13 20:23:14 +02:00
Michał Janiszewski f6292b4c13 Use clang-format 20 (#24861)
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
2025-07-31 11:01:48 +02:00
Jan Strauss 0522ae848b Add award plugin APIs (#24468)
* Add award plugin apis

* Address review feedback (use erase_if, extract AwardAdd method)

* Address review feedback (remove redundant comments, make AwardAdd static)

* Address review feedback (bump plugin api version, add changelog entry)
2025-07-13 07:04:26 -03:00
Gymnasiast d2615beb6e Change News enums to use lowerCamelCase 2025-05-24 23:47:18 +02:00
Gymnasiast 47bb449e34 Make news item fields lowerCamelCase 2025-05-24 23:47:18 +02:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Aaron van Geffen cf448753c1 Move WindowInvalidate and WidgetInvalidate families into WindowManager (#23692)
* Move WindowInvalidate and WidgetInvalidate families into WindowManager

* Use InvalidateWidget shorthand in more places

* Cut back on UiContext includes

* Cut back on Window.h includes

* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Aaron van Geffen 3685d1a24b clang-format: change IndentPPDirectives to BeforeHash (#23287) 2024-11-29 12:04:56 +09:00
kendfreyandTulio Leao 307523610e Add Park.generateGuest() to plugin API (#22883)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-10-02 06:49:43 -03:00
mrmbernardi 9ed5c63857 Rename Location.hpp constants (#22385) 2024-07-26 10:23:25 +02:00
Aaron van Geffen b5ef2693b0 Remove common.h include from all units 2024-07-09 16:45:19 +02:00
Arnold Zhou a0f5d09408 Expose monthly expenditure history to plug-in API 2024-06-23 22:49:49 +02:00
Arnold Zhou 0254b570d8 Dukvalue uint int fixes 2024-06-06 21:39:22 +02:00
Michał Janiszewski 7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
Gymnasiast c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast 28451027b1 Move Park to GameState_t 2024-04-04 18:12:08 +02:00
Harry Hopkinson 25d3db0f1f Move gParkRatingCasualtyPenalty to GameState_t (#21610) 2024-03-16 06:24:50 -03:00
Harry Hopkinson 81814bd81e Move gLandPrice to GameState_t 2024-03-07 18:44:21 +00:00
Harry Hopkinson 57a4c83f80 Move gConstructionRightsPrice to GameState_t (#21467)
* Move gConstructionRightsPrice to GameState_t

* Add OpenRCT2 namespace
2024-02-27 20:20:11 +00:00
Harry Hopkinson 70ea832808 Move gCompanyValue to GameState_t 2024-02-27 16:31:38 +01:00
Martin Mizzi f5a9846ea2 Move gBankLoan and gBankLoanInterestRate to GameState_t 2024-02-19 04:42:44 -05:00
Harry Hopkinson 691f5f88e5 Move gNewsItems to GameState 2024-02-14 10:54:15 +00:00
Harry Hopkinson 1c285dbf9f Move gMaxBankLoan to GameState 2024-02-13 21:36:35 +01:00
Gymnasiast 61e8b6d206 Move _suggestedGuestMaximum to GameState_t 2024-02-08 21:47:31 +01:00
Gymnasiast 142d708cee Move _guestGenerationProbability to GameState_t 2024-02-08 21:46:41 +01:00
Harry Hopkinson 6deac11916 Move gTotalRideValueForMoney to GameState_t 2024-02-08 09:39:28 +00:00
Harry Hopkinson ad5ef31a97 Move gTotalIncomeFromAdmissions to GameState_t (#21348) 2024-02-07 19:13:04 -03:00
Harry Hopkinson 3eb9cf2264 Move gTotalAdmissions to GameState_t (#21341)
Part of #21193.
2024-02-06 21:42:05 +01:00
Harry Hopkinson 11ae8247bd Move gNumGuestsInPark to GameState_t (#21295)
* Move gNumGuestsInPark to GameState_t

* Replace GetGameState() with gameState
2024-01-28 19:17:43 -03:00
Hielke Morsink 0c10435b7e #21193: Move gParkValue to GameState_t 2024-01-25 14:30:44 +01:00
Hielke Morsink 422df650b6 #21193: Move gParkSize to GameState_t (#21260) 2024-01-24 14:18:46 +01:00
Hielke Morsink fb420f6516 #21193: Move gParkEntranceFee to GameState_t (#21256) 2024-01-24 13:45:01 +01:00
Hielke Morsink f85cac627d #21193: Move gParkRating to GameState_t 2024-01-23 00:11:34 +01:00
Michael Steenbeek b5786c2a86 Move gGuestInitial* to GameState 2024-01-22 22:28:16 +00:00
Hielke Morsink 13351d996e #21193: Move gParkFlags to GameState_t, refactor uses
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01:00
ζeh Matt 3518a638bb #21193: Move gCash to GameState_t, refactor uses 2024-01-20 15:46:35 +02:00
James103 1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Ted John f35e595d0e Add research plugin API 2023-04-18 21:38:09 +01:00
Michael Steenbeekandduncanspumpkin dd624f9bff Replace remaining usages of money16, money32 (#19469)
* Use money64 for ride prices and shop items

* Use money64 for park entrance fee

* Use money64 for gGuestInitialCash

* Use money64 for upkeep costs

* Use money64 for ride value

* Use money64 for marketing campaign cost

* Use money64 for object prices

* Use money64 for land prices

* Use money64 for guest expenditure

* Replace remaining occurrences of money32 with money64

* Update replays

* Bump network version

---------

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-03-02 21:55:42 +00:00