Commit Graph

526 Commits

Author SHA1 Message Date
Gymnasiast
56accb3790 Use RatingTuple across the codebase 2024-07-04 00:29:40 +02:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen
9e206d5528 Remove dependency on StringIds.h from Localisation.h (#22011)
* Remove dependency on StringIds.h from Localisation.h

* Include Language.h in UTF8.cpp for function declarations

* Rename tests/Localisation.cpp to tests/LocalisationTest.cpp
2024-05-10 19:14:05 +00:00
Aaron van Geffen
86835836b5 Move strings exclusively used by ride meta data to RideStringIds.h (#22010) 2024-05-10 19:05:05 +00:00
Aaron van Geffen
ca6f142a97 Remove Config.h include from many places 2024-05-08 22:29:32 +02:00
Gymnasiast
c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast
fef1a27342 Remove GameState class 2024-04-04 18:12:35 +02:00
Gymnasiast
28451027b1 Move Park to GameState_t 2024-04-04 18:12:08 +02:00
Gymnasiast
1f1377a8ef Move Date to GameState_t 2024-04-04 18:12:08 +02:00
Gymnasiast
c232aa9b0c Create import meta object, use single method for JSON parsing 2024-03-30 18:13:03 +01:00
Claudio Tiecher
a1fd280a27 Part of #21421: refactor also test 2024-03-25 17:09:25 +01:00
Duncan
4b6ba80a46 Move cheats to struct in GameState_t 2024-03-03 22:44:15 +01:00
Matt
9d9f0af0cd Pathfinding cleanup (#21407)
* Eliminate unnecessary abstraction for path finding

* Pass the goal to ChooseDirection instead of using globals

* Remove gPeepPathFindGoalPosition and pass it by parameter instead

* Remove _peepPathFindIsStaff and make ignoring banners explicit

* Code style and naming fixups

* Apply clang-format

* Add comment specifying to why it does not ignore banners

* Apply review comments
2024-02-22 21:52:01 +02: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
9b2a79faf1 Adjust the import/export code to have the game state passed 2024-01-19 16:32:19 +02:00
ζeh Matt
a5dde0f8dc Replace gCurrentTicks with the one in GameState_t 2024-01-19 16:32:19 +02:00
Gymnasiast
cfff3c53f9 Do not use RCT1/2 limits in TrackDesign.h
Some unrelated files seemingly relied on TrackDesign.h to import RCT2.h for them.
2024-01-03 21:12:53 +01: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
matoro
191b0c4d6d Use __LP64__ for BitSet 64-bit blocksize conditional check
The canonical way to check for 64-bit system is __LP64__ preprocessor
define.  This allows to build and pass test suite on ppc64le.
2023-12-24 18:30:48 +01:00
ζeh Matt
ae3c1037ad Properly name what the getter/setter for surface object index is 2023-08-26 20:50:06 +03:00
ζeh Matt
5f515b6a73 Refactor the code that uses MapGetFootpathElement 2023-08-05 18:09:38 +03:00
ζeh Matt
378e1f3c15 Ensure the tests use the correct overloads 2023-07-06 01:32:28 +03:00
ζeh Matt
c55eb50740 Add some basic tests for Equals and IEquals 2023-07-06 00:51:52 +03:00
Matthias Moninger
379287ed0f Remove legacy stuff in common.h (#20523)
* Remove old interop macro

* Remove legacy string macro things

* Unbreak the posix/linux/unix builds

* Add String::IEquals and use it for case insensitive compare

* Add missing include for posix

* Replace _strnicmp with String::StartsWith

* Add LoByte and HiByte into Util.h, swap macros

* Fix android build

* Hopefully last of the string things

* Replace STUB directly with the warning
2023-07-02 12:59:20 +03:00
ζeh Matt
ac583569da Remove Platform::CoreInit 2023-06-27 23:35:11 +03:00