Commit Graph
176 Commits
Author SHA1 Message Date
Gymnasiast 83cbac90ec Move stuff that affects the whole screen/viewport out of Drawing.{cpp,h} 2026-09-06 19:40:56 +02:00
Gymnasiast d611a7d560 Rename TRACK_NEARBY_SCENERY_DISTANCE to kTrackNearbySceneryDistance 2026-08-23 19:06:47 +02:00
Gymnasiast d943171fae Create enum class for EntranceType 2026-08-12 16:16:07 +02:00
Gymnasiast 631804fd13 Make WallElement members adhere to code style 2026-08-12 15:17:55 +02:00
Gymnasiast 84f1946db8 Make TrackElement members adhere to code style 2026-08-12 15:17:50 +02:00
Gymnasiast d3c54532ca Make SmallSceneryElement members adhere to code style 2026-08-12 15:17:39 +02:00
Gymnasiast 2f9db0a5d4 Make PathElement members adhere to code style 2026-08-12 15:17:34 +02:00
Gymnasiast 95025ba916 Make LargeSceneryElement members adhere to code style 2026-08-12 15:17:29 +02:00
Gymnasiast 4af2e9d1fd Make EntranceElement members adhere to code style 2026-08-12 15:17:23 +02:00
Harry Hopkinson 6323d95edc Remove openrct2/ride includes 2026-08-07 07:13:38 +02:00
Michael Steenbeek 1be4d6d94b Update TileElementType to use new codestyle (#26766) 2026-07-09 17:50:25 +00:00
Marino Rottier 6c6acd527b Rename TileElementBase members (#26522)
* Rename TileElementBase members to camelCase

* Rename RCT12TileElementBase and RCT12TileElement members to camelCase
2026-05-17 13:21:16 +00:00
Gymnasiast f3cec44278 Move TrackTypeIs*() to TrackElemType.{cpp,h} 2026-03-10 18:33:43 +01:00
Michael Steenbeek f9756b988f Add TD7 format 2026-02-16 23:42:35 +01:00
Gymnasiast 1a05e28b46 Create Limits::kTD6MaxMazeElements and Limits::kTD6MaxSceneryElements 2026-02-10 19:14:30 +01:00
matheusvb3 b53cf66ea2 Bring some variables to inner scope 2026-01-16 12:45:15 -03:00
matheusvb3 bba937a03d Remove more redundant namespace qualifiers (#25828) 2026-01-16 08:38:20 +01:00
matheusvb3 9166f3e83d Remove redundant static_casts in miscellaneous files (#25772) 2026-01-08 13:34:44 +01:00
Aaron van Geffen 6a6bd8e1aa Reduce dependencies for Ride.h (#25757) 2026-01-06 20:03:31 +00:00
Aaron van Geffen b5cd780b3e Rework drawing header includes (#25744)
* Move Csg unit into OpenRCT2 namespace

* Move G1Element into its own header file

* Clean up SpriteCommands.h

* Add trailing namespace comment to Csg.cpp

* Remove Drawing.h dependency from Graph.h

* Add <memory> include to G1Element.h

* Remove Drawing.h include from ImageTable.h (used by all objects!)

* Drop Drawing.h dependency from OpenGLFramebuffer.h

* Drop Drawing.h dependency from TextureCache.h

* Drop Drawing.h include from TitleScene.h

* Drop Drawing.h dependency from Widget.h

* Add <optional> include to SpriteFile.h

* Add Drawing.h to PlayTests, S6ImportExportTests

* Include <cstdint> in TitleScene.h for SIZE_MAX
2026-01-05 19:09:34 +00:00
Aaron van Geffen 40aaf97c07 Update copyright years to 2026 (#25741) 2026-01-05 13:42:59 +00:00
Gymnasiast b6e09bbc7e Change code style of enums in Viewport.h 2025-09-17 20:10:11 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Gymnasiast 8c001ba4b5 Move SawyerEncoding files to their own folder 2025-07-04 22:07:17 +02:00
Michael Steenbeek 70bdddcf36 Reduce object casting (#24072) 2025-03-25 08:51:44 +01:00
73 c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01:00
Aaron van Geffen bb94ee8bc0 Rename ObjectType enum to follow recent code style (#23810) 2025-02-13 23:07:55 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +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 d2e01dde4e Remove a bunch of Util.h includes 2024-10-29 13:12:52 +01:00
Duncan f6582647f5 Large scenery tiles 2 (#22888)
* Use std::span for tiles

* Add an index helper parameter

* Use coordsxyz

* Split up corners and walls

* Use bools for the two flags

* Apply coding style

* Refer only to LargeSceneryObject where required

* Address comments
2024-10-16 22:35:29 +01:00
Michael Steenbeek a2ed026264 Split up remaining tile elements 2024-10-15 22:02:31 +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
Michael Steenbeek e6e0f97557 Split off EntranceElement header 2024-10-03 12:42:53 +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 3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen 8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen 51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
Michael Steenbeek a82d398afd Abstract flags access in track design scenery 2024-06-19 12:15:17 +02:00
Gymnasiast 113996dfcc Rename scenery element names, add tertiary colour 2024-06-14 21:17:34 +02:00
Aaron van Geffen ca6f142a97 Remove Config.h include from many places 2024-05-08 22:29:32 +02:00
Michał Janiszewski 7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
Gymnasiast 085a126bbf Remove unnecessary arguments to TrackDesignSave{Add,Remove}TileElement 2024-02-13 23:31:09 +01:00
Gymnasiast 4b03275cff Remove snake_case in TrackDesignSave.cpp 2024-02-13 23:26:41 +01: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
Duncan b56748bc82 ObjectEntry Cleanup. FootpathItem, SceneryGroup, Water, LargeScenery (#19385)
* Move footpathitem entry into new getter

* Move scenery group entry into new getter

* Move water entry into new getter

* Move large scenery entry into new getter

* Remove unused header includes

* Fix compile issue

* Include missing header from vcxproj
2023-02-15 21:35:16 +00:00
Duncan d811c9a9ba Add Object Entry Manager (#19332)
* Add object entry manager

Port over wall and banner

* Port over small scenery to ObjectEntryManager

Clang format files

Actually make things safe

Fix build
2023-02-12 20:43:11 +00:00
Duncan 7d08372c80 Remove snake_case from Class names OpenRCT2/Ride*-S* (#19232)
* Remove snake_case from Class names OpenRCT2/Ride*-S*

* Clang format
2023-01-20 20:58:55 +00:00