Alex Parisi
efb6d48c4c
Add plugin API to get registered plugin metadata ( #20709 )
...
* Added API for getAllPlugins
Added functionality to the Scripting API to allow Contexts to return a list of all registered plugins.
* Fixed naming conventions, returning list of authors
Changed function names to follow get/set convention. Removed unnecessary copies of shared pointers, now using auto instead. Changed the functionality to return an array of authors instead of a string.
* Added changelog entry
Also added myself to list of contributors
* Moved all functionality to ScPlugin
Created a ScPlugin class and moved the current getPlugins functionality there.
* Changed from method to property
Function names now match the get/set convention for properties. Also did some code cleanup.
* Update copyright
* Bump plugin version
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2024-02-16 05:53:48 -03:00
Harry Hopkinson
691f5f88e5
Move gNewsItems to GameState
2024-02-14 10:54:15 +00:00
Harry Hopkinson
1c285dbf9f
Move gMaxBankLoan to GameState
2024-02-13 21:36:35 +01:00
Harry-Hopkinson
b755c873e5
Move gMapSize to GameState_t
2024-02-12 21:32:08 +00:00
Gymnasiast
61e8b6d206
Move _suggestedGuestMaximum to GameState_t
2024-02-08 21:47:31 +01:00
Gymnasiast
142d708cee
Move _guestGenerationProbability to GameState_t
2024-02-08 21:46:41 +01:00
Harry Hopkinson
6deac11916
Move gTotalRideValueForMoney to GameState_t
2024-02-08 09:39:28 +00:00
Harry Hopkinson
ad5ef31a97
Move gTotalIncomeFromAdmissions to GameState_t ( #21348 )
2024-02-07 19:13:04 -03:00
Harry Hopkinson
3eb9cf2264
Move gTotalAdmissions to GameState_t ( #21341 )
...
Part of #21193 .
2024-02-06 21:42:05 +01:00
Gymnasiast
8208afe5f6
Move gResearch* globals to GameState_t
2024-01-29 21:36:04 +01:00
Harry Hopkinson
11ae8247bd
Move gNumGuestsInPark to GameState_t ( #21295 )
...
* Move gNumGuestsInPark to GameState_t
* Replace GetGameState() with gameState
2024-01-28 19:17:43 -03:00
Hielke Morsink
0c10435b7e
#21193 : Move gParkValue to GameState_t
2024-01-25 14:30:44 +01:00
Michael Steenbeek
115e7389a9
Move most gScenario* globals to GameState_t
2024-01-24 22:17:32 +01:00
Hielke Morsink
422df650b6
#21193 : Move gParkSize to GameState_t ( #21260 )
2024-01-24 14:18:46 +01:00
Hielke Morsink
fb420f6516
#21193 : Move gParkEntranceFee to GameState_t ( #21256 )
2024-01-24 13:45:01 +01:00
Harry Hopkinson
42336915cd
Move gClimateCurrent to GameState_t
2024-01-24 11:18:54 +01:00
Hielke Morsink
f85cac627d
#21193 : Move gParkRating to GameState_t
2024-01-23 00:11:34 +01:00
Michael Steenbeek
b5786c2a86
Move gGuestInitial* to GameState
2024-01-22 22:28:16 +00: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
Harry Hopkinson
0f283dc2a9
Move gClimate to GameState_t
2024-01-21 21:05:22 +00:00
Harry Hopkinson
7ca5b1cd65
Move gClimateNext to GameState_t ( #21231 )
2024-01-21 18:22:57 +01:00
Matt
b35eb7ac7f
Merge pull request #21229 from ZehMatt/21193-gCash
...
#21193 : Move gCash to GameState_t, refactor uses
2024-01-20 17:00:58 +02:00
Katherine Norton
0450435377
Add Plugin API for managing a guest's items ( #21062 )
...
* Add API for guest items in openrct2.d.ts
* Create GuestItem interfaces
* Set fields to readonly and add documentation
* Implement getting items array
* Implement checking if a guest has an item
* Implement removing items from guests
* Implement giving a guest an item
* Re-merge GuestItemType with FoodDrinkType
* Add more data validation for the EnumMaps
* Update versioning and changelog
* Add some errors to the give_item method
* Bump network version
* Update VoucherType to if/else
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
* Add static_assert to ScGuest.hpp
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2024-01-20 11:51:23 -03:00
ζeh Matt
3518a638bb
#21193 : Move gCash to GameState_t, refactor uses
2024-01-20 15:46:35 +02:00
ζeh Matt
a5dde0f8dc
Replace gCurrentTicks with the one in GameState_t
2024-01-19 16:32:19 +02:00
Gymnasiast
9d03fad8b8
Rename TrackSlope to TrackPitch
2024-01-17 23:34:37 +01:00
Gymnasiast
cffc55e165
Rename fields of TrackDefinition
2024-01-17 23:33:19 +01:00
Gymnasiast
44d547a4bc
Make TrackPitch into an enum class
2024-01-17 23:33:19 +01:00
Gymnasiast
b832eb5f72
Make TrackBank into an enum class
2024-01-17 23:33:19 +01:00
Max
7a9e8a5e44
Fix: setting brake/booster speeds via plug-in does not work
2024-01-15 08:28:21 +01:00
ζeh Matt
7d3c273594
Fix #21171 : Crash creating entities with no slots available
2024-01-12 17:56:23 +02: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
ζeh Matt
62c0bc2cf5
Remove 13k dynamic initializer by changing SpriteGroupNames type
2023-11-25 16:22:45 +02:00
ζeh Matt
b4376ab590
Add owner property to tile elements for scripting
2023-10-08 02:30:43 +03:00
Stephan Spengler
39ecab4bd2
add small scenery tertiary colour to plugin API ( #20818 )
...
* add small scenery tertiary colour to plugin API
* bump API version
2023-10-01 11:27:04 +01:00
ζeh Matt
45afc1f67b
Properly name setter/getter for edge object index
2023-08-26 21:01:27 +03:00
ζeh Matt
ae3c1037ad
Properly name what the getter/setter for surface object index is
2023-08-26 20:50:06 +03:00
Matthias Moninger
b347cbce03
Merge pull request #20473 from IntelOrca/fix-14853
...
Fix #14853 : [Plug-in] Subscribing to a non-existing event crashes game
2023-06-27 23:07:24 +03:00
Ted John
30664df8e9
Fix #14853 : [Plug-in] Subscribing to a non-existing event crashes game
2023-06-27 00:08:05 +01:00
Matthias Moninger
fb1b531d59
Fix build error due to stale base branch for #20100 ( #20476 )
2023-06-26 08:10:01 +01:00
Matthias Moninger
3edb044685
Merge pull request #20100 from IntelOrca/plugin/object-manager
...
Add plugin APIs for the object manager
2023-06-26 02:26:13 +03:00
Luke Hobbs
c1f75a0906
Add plugin name to CustomAction and ScriptEngine
2023-06-02 22:04:05 -04:00
Michael Steenbeek
1f5e9ac285
Clean up path additions entry index handling ( #20177 )
...
* Clean up path additions entry index handling
* Bump network version
2023-05-20 09:33:02 +01:00
Ted John
79f8913065
Fix CI due to sign issue
2023-05-02 20:28:14 +01:00
Ted John
0ed4bfbc4a
Return null for legacyIdentifier
2023-05-02 20:28:14 +01:00
Ted John
cbd4c78cf6
Handle legacy objects correctly
2023-05-02 20:28:14 +01:00
Ted John
069a2b3192
Implement object manager for plugins
2023-05-02 20:28:14 +01:00
Ted John
f95472c70a
Add API for installed objects
2023-05-02 20:28:14 +01:00
Ted John
f1ac4363ce
Fix openrct2.d.ts
2023-05-02 20:28:14 +01:00
Ted John
58dc3f193b
Use simple identifiers
2023-05-02 20:27:57 +01:00