Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
6ee798337a
Introduce EnumUtils header ( #23407 )
2024-12-15 17:39:52 +01:00
Aaron van Geffen
35e117aca2
Rename String methods to use lowerCamelCase
2024-12-11 22:49:37 +01:00
Aaron van Geffen
5442b20a7a
Move StrLogicalCmp, SafeStrCpy, SafeStrCat to String.hpp
2024-12-11 20:42:43 +01:00
Aaron van Geffen
4f32028e01
Move RideManager struct into its own compilation unit ( #23379 )
...
* Move RideManager struct into its own compilation unit
* Move RidesEndOfUsedRange into GameState_t
* Let RideManager keep a GameState_t& internally
2024-12-11 15:54:45 +01:00
RedMarcher
c24e47dea1
Rename cheat variables to match new code style
2024-12-01 18:15:37 +01:00
Aaron van Geffen
3685d1a24b
clang-format: change IndentPPDirectives to BeforeHash ( #23287 )
2024-11-29 12:04:56 +09:00
Gymnasiast
6de1ac1ec7
Remove EnumName from RTD
...
Only used by tests, update to use `Name` (same what’s already used in the JSON files).
2024-11-24 12:58:03 +01:00
Aaron van Geffen
7c69ba3d6a
Rewrite Zh-TW language test to use UTF-8 strings, dropping overrides
2024-10-30 22:58:47 +01:00
Aaron van Geffen
8aeb1d2b98
Remove broken support for object string overrides as well
2024-10-30 22:58:47 +01:00
Aaron van Geffen
9257a9d62d
Remove support for scenario overrides from language files
2024-10-30 22:58:47 +01:00
Aaron van Geffen
f40da09ab8
Move SawyerCoding from util into core, and into its own namespace
2024-10-29 21:59:28 +01:00
Aaron van Geffen
80b63a5ae7
Add line breaks after template declarations ( #23086 )
...
* Add line breaks after template declarations
* Additional clang-format patches
2024-10-29 16:54:01 +01:00
Michael Steenbeek
a2ed026264
Split up remaining tile elements
2024-10-15 22:02:31 +02:00
Michael Steenbeek
0ec76e09d4
Remove unused IStream::ReadString() function and fix includes
2024-10-15 17:39:54 +02:00
Michael Steenbeek
71ce725a2a
Split off BannerElement and TrackElement ( #22955 )
2024-10-14 14:26:10 +02:00
duncanspumpkin
6283993351
Move WallElement into its own header/source files
2024-10-07 22:04:13 +02:00
AT41
6e7b489304
Added additional stats to Plugin interface
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-10-03 11:23:50 +00:00
Michael Steenbeek
e6e0f97557
Split off EntranceElement header
2024-10-03 12:42:53 +02:00
ζeh Matt
3755f3a6d1
Remove two more globals, pass them as arguments
2024-09-30 22:31:13 +03:00
Arnold Zhou
c161a3911a
Fix #22072 : Localisation: Separate objective date string from staff tenure date string ( #22074 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-09-28 15:13:48 +00:00
Aaron van Geffen
cf516db6dc
Split StringTypes.h off from String.hpp; adjust header includes
2024-09-10 23:55:53 +02:00
Aaron van Geffen
1b7bbee608
Move CodepointView class to its own header
2024-09-10 23:36:59 +02:00
Tulio Leao
e1b6ee93f9
Part of #22596 : Only apply .parkpatch when starting scenarios
2024-09-08 06:52:01 -03:00
Tulio Leao
771ba4e29f
Move thing into OpenRCT2 namespace
2024-08-19 19:52:14 -03:00
Tulio Leao
3c8659ed69
Use headless_no_graphic on tests
2024-08-19 19:52:14 -03:00
Tulio Leao
1ebaac86be
Add tests to iterate on all .parkpatch files
2024-08-19 19:52:14 -03:00
Tulio Leao
8c56982613
Unify function to get string from hex
2024-08-19 19:52:14 -03:00
Aaron van Geffen
d1ca17adef
Remove ScenerySetDefaultPlacementConfiguration from _legacy.cpp
2024-07-31 20:12:23 +02:00
Aaron van Geffen
05e56517ab
Adopt existing namespaces into OpenRCT2 namespace ( #22368 )
...
* Put all of TitleSequenceManager into the same namespace
* Move RideConstructionState into the OpenRCT2 namespace
* Adopt existing namespaces into OpenRCT2 namespace
This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen
896eb4f488
Consolidate FormatStringIDLegacy, FormatStringToUpper into Formatting
2024-07-13 14:09:58 +02:00
Aaron van Geffen
229df6d66d
Move CSStringConverter from localisation to rct12 folder ( #22280 )
2024-07-12 20:37:00 +00:00
Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
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