1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00
Commit Graph

244 Commits

Author SHA1 Message Date
Gymnasiast
2c7d2fff7c Move track design appearance to its own struct 2024-07-02 22:35:19 +02:00
spacek531
4e72d580f8 Allow non-networked plug-ins to set pause state directly 2024-06-25 11:36:01 +02:00
Arnold Zhou
a0f5d09408 Expose monthly expenditure history to plug-in API 2024-06-23 22:49:49 +02:00
Arnold Zhou
0254b570d8 Dukvalue uint int fixes 2024-06-06 21:39:22 +02:00
Stephan Spengler
71a8eee5c6 Fix #21987: API cannot handle negative removal prices 2024-06-06 12:01:51 +02:00
spacek531
4ea55ef415 Change ScVehicle::isReversed_get/set to template function 2024-06-04 13:06:20 +02:00
spacek531
94750f4e34 Add plugin API to VehicleCrashedParticle 2024-05-29 12:32:41 +02:00
Die4Ever
a50fa5e04b Increase socket buffer size when receiving data 2024-05-29 00:00:32 +02:00
Arnold Zhou
01319ff352 Expose guest's favourite ride (ID) to plugin API 2024-05-27 15:18:02 +02:00
Aaron van Geffen
04fa09e8df Allow mechanics to be assigned the drowning animation (#22071) 2024-05-20 22:36:33 +02:00
Stephan Spengler
f4156e9043 Create or delete banners when tile elements are changed by plugins (#21627) 2024-05-17 07:54:51 -03:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen
893392d987 Scripting: allow precise and safe control of peep animations 2024-05-05 21:09:41 +00:00
Aaron van Geffen
831c7651bb Scripting: tailor costume assignment to each staff type
In order to transition staff costumes to objects, we must further disentangle staff from regular peeps. This has many advantages, such as making custom entertainers or even handymen costumes. However, this means putting some restrictions on what costumes can be assigned to staff in the mean while.

We are aware of plug-ins allowing staff to be decorated like normal peeps, though, e.g. using @Manticore-007's Peep Editor. Splitting staff from peeps will mean breaking such functionality. We can do our very best to reverting 'invalid' staff to their normal outfits instead of them outright disappearing. However, in the mean time, we should disallow peep costumes from being assigned to staff to prevent further disappointment down the line.

Once we get to actually adding custom staff costumes, I plan to add a new plug-in API to get available costumes for a particular staff type. This would apply to entertainers, but also other staff types. This should make it easier for plug-in authors to tap into custom costumes in the future.
2024-05-05 22:41:52 +02:00
Katherine Norton
cd528665e6 Expose whether the game is paused to the plugin API 2024-05-03 15:59:57 +00:00
Aaron van Geffen
17920b6039 Script: when changing staff type, reset state to walking
Reset state to walking to prevent invalid actions from carrying over
2024-05-01 23:10:25 +02:00
Michał Janiszewski
7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
Aaron van Geffen
d536f9bce0 Revert "Add owner property to tile elements for scripting"
This reverts commit b4376ab590.
2024-04-12 21:58:45 +02:00
Michael Steenbeek
271a22d00e Merge pull request #21681 from AaronVanGeffen/obj-list-refactor
Move various object list properties out of ObjectTypes header
2024-04-12 11:54:13 +02:00
Gymnasiast
c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast
7b072808ee Turn Date into struct 2024-04-04 18:12:36 +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
Aaron van Geffen
e898e9211d Move kObjectEntryGroupCounts to ObjectList.cpp 2024-03-27 20:13:10 +01:00
Stephan Spengler
2913a0686a Add banner properties to plugin API for large scenery, walls and banners 2024-03-26 11:42:09 +00:00
Claudio Tiecher
b60483f25d Part of #21421: Refactor VEHICLE_SEAT_NUM_MASK 2024-03-25 16:17:32 +01:00
Harry Hopkinson
25d3db0f1f Move gParkRatingCasualtyPenalty to GameState_t (#21610) 2024-03-16 06:24:50 -03:00
Duncan
1d3bd31ab8 Deduplicate FormatStringID symbols 2024-03-10 18:15:49 +00:00
Harry Hopkinson
0c1fb5fec0 Fix #21543: Game Crashing with invalid TrackIterator (#21547)
* Check if el is nullptr

Check if el is nullptr

Format

* Add changelog
2024-03-09 14:15:28 +00:00
Matt
1e8ae8ea11 Merge pull request #21542 from Harry-Hopkinson/gLandPrice-to-GameState
Move gLandPrice to GameState_t
2024-03-07 22:54:36 +02:00
Harry Hopkinson
81814bd81e Move gLandPrice to GameState_t 2024-03-07 18:44:21 +00:00
Harry Hopkinson
9ab18e37a2 Cleanup static_cast's
Cleanup static_cast's

Cleanup static_casts'

Cleanup static_casts'

Format Code

Address requested changes

Address requested changes

Change uint16_t to size_t

Stop undefined behaviour

Address requested changes.
2024-03-06 10:28:45 +00:00
Duncan
4b6ba80a46 Move cheats to struct in GameState_t 2024-03-03 22:44:15 +01:00
Harry Hopkinson
57a4c83f80 Move gConstructionRightsPrice to GameState_t (#21467)
* Move gConstructionRightsPrice to GameState_t

* Add OpenRCT2 namespace
2024-02-27 20:20:11 +00:00
Harry Hopkinson
70ea832808 Move gCompanyValue to GameState_t 2024-02-27 16:31:38 +01:00
Stephan Spengler
bcff6f5a7e Update ScTileElement.cpp: fix typos (#21463) 2024-02-26 18:10:47 -03:00
Harry Hopkinson
7797db10c8 Replace Macros and Notation in Cheats.h, common.h and Context.h. (#21437) 2024-02-23 19:30:35 -03:00
Martin Mizzi
f5a9846ea2 Move gBankLoan and gBankLoanInterestRate to GameState_t 2024-02-19 04:42:44 -05:00
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