Commit Graph
163 Commits
Author SHA1 Message Date
Harry Hopkinson 0fb70602d3 Convert contents of EntityRegistry.h to camelCase (#27019) 2026-08-29 22:24:54 +00:00
Aaron van Geffen 85bcdf6bf3 Replace editor load functions with scene switching 2026-06-27 14:25:23 +02:00
Aaron van Geffen fb6d596ada Integrate more editor functions into EditorScene 2026-06-27 14:14:06 +02:00
Aaron van Geffen 068af83a31 Move EditorStep to its own header file (#26690) 2026-06-14 18:27:02 +02:00
Harry Hopkinson 8ce9661dc9 Rename more enum members to lowerCamelCase (#26608)
* Rename enums in Cheats.h

* Rename enums in Diagnostic.h

* Rename enums in Editor.h

* Rename enums in Input.h

* Rename enums in OpenRCT2.h

* Rename enums in ConfigTypes.h

* Rename enums in Identifier.hpp
2026-05-28 10:54:24 +00:00
Aaron van Geffen 001df30eb5 Require ParkData& param for most Park functions 2026-02-13 14:36:05 +01:00
Aaron van Geffen be84cdb1bb Rename Climate to Weather where appropriate (#26163)
* Introduce OpenRCT2::Weather namespace

* Rename Climate.h/cpp to Weather.h/cpp

* Rename ScClimate.hpp to ScWeather.hpp

* Rename drawing/Weather.h to drawing/WeatherDrawer.h
2026-03-08 11:00:07 +01:00
Aaron van Geffen 773ba479cd Create separate unit for GameActionRunner 2026-02-09 16:06:56 +01:00
Michael Steenbeek 72c21efc69 Pass GameState ref down to subfunctions in game actions (#25777) 2026-01-08 22:04:07 +01: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
Matt d8698726c9 Refactor the network code also change protocol (#25575)
* Change the network protocol and refactor the code, still supports the old format for now

* Bump up network version

* Update changelog.txt
2025-12-03 00:06:39 +02:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Aaron van Geffen 316572e824 Park: pass ParkData ref directly to Park::Update 2025-09-12 17:53:51 +02:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Aaron van Geffen 12ab9195b6 Rework EntityRegistry into class 2025-08-31 14:29:36 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen f11d1e33d0 Move Scenario::Objective into its own unit; enum class ObjectiveType 2025-08-22 17:40:47 +02:00
Tulio Leao 74e329c015 Move RideRatingsUpdateAll into namespace 2025-08-17 06:27:02 -03:00
Aaron van Geffen 3f9352b511 Split off ParkData.h from Park.h 2025-08-13 19:55:58 +02:00
mix 78c2b85b1d Rename MapAnimation namespace to MapAnimations 2025-06-13 21:13:33 +01:00
mix d847c37fc8 Calculate visible animated tiles by tile position 2025-06-13 21:13:33 +01:00
ζeh Matt 769a85afb7 Refactor how map animations are created and stored 2025-06-13 21:13:32 +01:00
Matt 42df41efdb Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs

* Fix all the users

* clang-format fix

* Fix linux builds
2025-05-15 22:46:06 +03:00
mix 3c6ff344bb Prevent animation invalidation when paused 2025-04-07 22:12:03 +02:00
Gymnasiast 2002f697e0 Refactor INPUT_FLAGS into FlagHolder 2025-03-26 13:00:54 +01:00
Gymnasiast eaaba9fbfb Rename HOOK_TYPE and its members 2025-03-26 12:16:47 +01:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Gymnasiast 79514bbb79 Modify News::InitQueue to take GameState_t 2025-03-18 23:25:25 +01:00
Aaron van Geffen 8eb8f045b5 Purge old climate setting from gamestate 2025-02-04 16:25:17 +01:00
Michael Steenbeek 05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +01:00
Michael Steenbeek 06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Aaron van Geffen a380413c56 Remove Scenario.h include from many units (#23901)
* Reduce includes/dependencies for Scenario.h

* Remove Scenario.h include from many units
2025-03-01 17:32:32 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Basssiiie 9ba4beb1dc Fix #23496: missing spatial index update when paused (#23505) 2024-12-30 08:02:25 -03:00
ζeh Matt 551a6b5275 Move the call to UpdateEntitiesSpatialIndex to more appropriate places 2024-10-12 04:17:17 +03:00
Michael Steenbeek cc1d11a01b Merge pull request #22689 from Gymnasiast/refactor/provisional-elements-to-ui
Move removal/restoring of provisional elements to UI project
2024-09-06 23:44:39 +02:00
Gymnasiast ab3e919678 Move removal/restoring of provisional elements to UI project 2024-09-06 23:31:50 +02:00
Aaron van Geffen 960bea7aae Prefer using passed game state in save import classes (#22682)
* Wrap global game state in a unique_ptr

* Make ImportTileElements, SetTileElements use game state passed

* Make ImportParkName, ImportSavedView use game state passed

* Make ImportPeepSpawns use game state passed

* Make FixEntrancePositions use game state passed
2024-09-06 23:04:14 +02:00
Aaron van Geffen 547b763e89 Reduce includes for GameState compilation unit (#22690) 2024-09-03 23:29:12 +03:00
Harry Hopkinson c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02:00
Aaron van Geffen d1ca17adef Remove ScenerySetDefaultPlacementConfiguration from _legacy.cpp 2024-07-31 20:12:23 +02:00
Aaron van Geffen 3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen 3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Michał Janiszewski 7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
duncanspumpkin 4810a72232 Move a number of ui only updates into UiContext tick 2024-04-29 14:10:52 +02:00
Aaron van Geffenandζeh Matt 255e89ec37 Refactor TitleScreen to TitleScene; introduce GameScene
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2024-04-23 21:31:05 +02:00
Gymnasiast 19e403068d Fix formatting 2024-04-04 18:18:25 +02:00
Gymnasiast c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00