Commit Graph
973 Commits
Author SHA1 Message Date
Harry Hopkinson 6b2fb43861 Move interface types from Location.hpp to ScreenCoords.hpp (#26945) 2026-08-19 19:20:50 +02:00
Marino Rottier e25c301668 feat: add PathNavigator (#26412)
* feat: add PathNavigator

* separate PathConnection from PathNavigator

* add PathNavigationOptions for PathNavigator

* make PathNavigationOptions positive instead of double-negative

* [skip ci] fix typo

* [skip ci] revert formatting

* align branch with develop after merge

* Address PR feedback

* Adapt PathNavigator to lowerCamelCase renames in develop

Upstream renamed TileElementType members and PathElement/BannerElement
accessors to lowerCamelCase (#26608, #26626 and follow-ups).

* Name PathNavigator/PathConnection Register and New

Use the same names as every other scripting engine class for these two
functions, so they don't read as doing something different.
2026-08-19 23:49:45 +10:00
Harry Hopkinson 840f1c4f91 Move includes in scripting files inside ENABLE_SCRIPTING (#26950) 2026-08-18 17:24:49 +02:00
Michael Steenbeek a74f7437b9 Rename symbols of Peep (#26949) 2026-08-17 23:42:30 +02:00
Michael Steenbeek b5c1570b78 Rename members of smaller entities (#26946) 2026-08-17 22:10:51 +02:00
Gymnasiast d2783e0564 Rename some ‘OwnershipFlag’s 2026-08-14 22:12:16 +02:00
Gymnasiast db53fd3f7f Introduce SurfaceElement::hasOwnership() 2026-08-14 22:12:16 +02:00
Gymnasiast 11547e998a Make enum class+FlagHolder for ownership flags and normalise them 2026-08-14 21:52:24 +02:00
Gymnasiast 7b1b014fce Create enum class for EntranceSequence 2026-08-12 18:42:22 +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 25865dce31 Make SurfaceElement members adhere to code style 2026-08-12 15:17:44 +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
Gymnasiast be98df4081 Make BannerElement.h adhere to code style 2026-08-11 22:19:46 +02:00
Gymnasiast ac2515d483 Make TileElement.h adhere to code style 2026-08-11 22:17:52 +02:00
Max a187bc9550 Close #26827: Add map resize hook to scripting API (#26828) 2026-08-09 20:55:24 +02:00
Gymnasiast 24869300df Rename VehicleSpriteGroup member function to adhere to code style 2026-08-09 17:08:45 +02:00
Gymnasiast a629158a4b Rename SpriteGroupNames to kSpriteGroupNames 2026-08-09 17:08:45 +02:00
Gymnasiast 5c0fc86397 Rename CarEntry members to adhere to code style 2026-08-09 17:02:34 +02:00
Gymnasiast 8b4b1c6561 Refactor VEHICLE_VEHICLE_* to two enum classes 2026-08-09 16:30:50 +02:00
Gymnasiast f08bc61f03 Refactor park flags into enum class+FlagHolder 2026-08-08 18:49:32 +02:00
Gymnasiast a70874710a Refactor peep flags to enum class+FlagHolder 2026-08-08 18:28:22 +02:00
Harry Hopkinson 8cd44cc686 Remove openrct2/world includes 2026-08-08 00:04:30 +01:00
Harry Hopkinson 6c5c2079ce Remove openrct2/scripting includes 2026-08-07 23:54:10 +01:00
RayKoopa 5a814722e1 Add Walls-only and Footpath Addition modes to Clear Scenery (#26877)
* Add two new modes for Clear Scenery.
- Split "Walls" from "Small Scenery" into own mode
- Add "Footpath Additions" mode
2026-08-07 20:49:40 +00:00
Aaron van Geffen 4087c9c6b9 Rework script binding includes (#26882)
* Rework entity binding includes

* Rework network binding includes

* Rework object binding includes

* Rework ride binding includes

* Rework world binding includes
2026-08-07 18:11:06 +02:00
Aaron van Geffen 51649e5873 Rework Ride and Vehicle headers into OpenRCT2 namespace (#26881)
* Move vehicle flags to their own header

* Move Ride, RideConstruction, RideRatings, Vehicle into OpenRCT2 namespace

* Rename to SpecialDropdownElement as suggested
2026-08-07 16:22:36 +02:00
Gymnasiast 0d8af50f45 Rename members of GameCommand 2026-08-07 06:57:38 +02:00
Gymnasiast 9bd1e0c858 Rename members of ObjectGeneration 2026-08-07 06:57:36 +02:00
Gymnasiast 3fa93c3278 Rename members of Weather::Type 2026-08-07 06:57:33 +02:00
Gymnasiast 0ab5cb5c49 Rename members of ScConfigurationKind 2026-08-02 20:09:03 +02:00
Gymnasiast e1f2c365c1 Rename members of PluginType 2026-08-02 20:08:35 +02:00
Gymnasiast 47c1bf9166 Rename members of SpriteGroupType 2026-08-02 20:00:55 +02:00
Ben SpurlockandCursor 0fc88ab16c [Plugin API] Automation helpers for park directors and programmatic ride building (#26675)
* [Plugin API] Add automation helpers for park directors and ride building

Expose ride maintenance metrics, context.gameSpeed, map bulk queries,
riderefurbish action alias, FootpathElement.isAdditionFull, and
TrackSegment.getNextValidSegments. Bump plugin API version to 115.

Includes TrackPieceSelection from markusklock's work (#25840).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add PR #26675 to distribution/changelog.txt

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix CI: clang-format and changelog ordering

Reorder 0.5.3 changelog entries and apply format-changelog.js output.
Apply clang-format fixes to ScriptEngine.cpp and ScMap.cpp.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix contributor name to Ben Spurlock (BenDaSpur)

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix changelog EOF for CI check-changelog-formatting

Remove trailing blank line so the file matches formatter output via
echo (bash strips trailing newlines from command substitution).
Also correct contributor name to Ben Spurlock (BenDaSpur).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove #25840 TrackPieceSelection overlap from PR #26675

Per maintainer feedback, drop TrackSegment.getNextValidSegments and the
TrackPieceSelection implementation copied from markusklock's open PR #25840
so this change set can be reviewed independently. Those additions will be
picked up when #25840 lands.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Simplify plugin API per maintainer review

Drop the riderefurbish alias and bulk map query APIs in favor of existing
primitives, and consolidate the changelog entry.

* Fix isAdditionFull to only report visibly full / emptiable bins

Per review feedback, a litter bin slot is only "full" (shows the full
sprite and can be emptied by a handyman) once its 2-bit edge slot reaches
0, not whenever the status byte is below 255. Mirror the engine's own
Staff::updatePatrollingFindBin logic and require the addition to be a bin.

* Remove unused includes left over from dropped APIs

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-20 09:16:29 +02:00
Michael Steenbeek 1be4d6d94b Update TileElementType to use new codestyle (#26766) 2026-07-09 17:50:25 +00:00
MaukWM 1ef6b7e941 Add save game binding in plugin API (#26560)
* Add context.saveGame() binding in plugin API.

* Add option to save games to a specific path via the plugin API.

* Alter documentation for SaveGameOptions.

* Bump kPluginApiVersion to 116.

* Use IsFilenameValid to disallow saving files with invalid characters

* Add changelog entry
2026-07-08 11:40:39 +00:00
mrmbernardi a64f0eff6c Fix crash when ScPark::generateGuest fails to generate a guest (#26681) 2026-06-16 20:24:53 +02:00
MarcelVos96 86f282f7c0 Add cheat to disable grass growing (#26442) 2026-06-09 23:03:27 +02:00
Stephan SpenglerandTulio Leao bcdac632a4 Add footpath object flags to API (#26322)
* add footpath object flags to API

* Add changelog

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-06-06 16:31:03 -03:00
mgiannopoulos24 ab47bbd5d9 Rename Guest entity members (#26625) 2026-05-30 14:21:37 +00:00
mgiannopoulos24 d85835a0a0 Rename Staff entity members (#26603)
* Rename Staff entity member fields

* Rename Staff entity methods for consistency

* Remove unused EntertainerCostume enum class
2026-05-28 12:28:45 +02:00
mgiannopoulos24 d841b2dcec Rename Litter entity members (#26597)
* Rename Litter entity members

* Rename `Serialise` → `serialise` in all entity types called from GameStateSnapshots.cpp.
2026-05-21 21:21:42 +02:00
Harry Hopkinson 9d5e532064 Rename enum members to lowerCamelCase in actions/ (#26593)
* Rename enums in LoadOrQuitAction.h

* Rename enums in ScenarioSetSettingAction.h

* Rename enums in TileModifyAction.h

* Rename enums in NetworkModifyGroupAction.h

* Rename enums in LandBuyRightsAction.h

* Rename enums in LandSetRightsAction.h

* Rename enums in ParkSetParameterAction.h

* Rename enums in PeepPickupAction.h

* Rename enums in StaffSetPatrolAreaAction.h

* Rename enums in RideFreezeRatingAction.h

* Rename enums in RideSetAppearanceAction.h

* Rename enums in RideSetSettingAction.h

* Rename enums in RideSetVehicleAction.h

* Rename enums in BannerSetStyleAction.h
2026-05-21 19:16:07 +00:00
Harry Hopkinson 9780eead48 Rename JumpingFountain and move paint code to paint/entity (#26571)
* Move JumpingFountain paint code to paint/entity

* Rename Fountain files to JumpingFountain

* Rename PaintFountain to PaintJumpingFountain
2026-05-20 18:34:41 +02: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
Marino Rottier ce23b3c644 Rename Management members (#26530)
* Rename Award members to lowerCamelCase

* Rename MarketingCampaign members to lowerCamelCase

* Rename ResearchItem members to lowerCamelCase

* Rename News::ItemQueues members to lowerCamelCase

* Rename News::ItemQueue members to lowerCamelCase
2026-05-17 14:58:29 +02:00