Hielke Morsink
a67e805e60
Log messages with new LogPluginInfo function
2022-05-09 21:17:55 +02:00
Hielke Morsink
c404e31e9a
Increment plug-in API version
2022-05-08 20:10:01 +02:00
Hielke Morsink
9e4ed1e85a
Make property messages more consistent
2022-05-08 20:07:45 +02:00
Hielke Morsink
2bf5f1040a
Sanitize all track element properties
2022-05-08 19:54:33 +02:00
Hielke Morsink
813618d30b
Print message when attempting to set invalid property
...
Added for the previously track setters, and all surface element properties.
2022-05-08 15:35:34 +02:00
Hielke Morsink
4b081a8937
Fix: Crash when plug-in attempt to set invalid property
2022-05-07 20:33:52 +02:00
germanaizek
958bfbc08a
Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen
2022-05-07 16:05:39 +02:00
germanaizek
0045aed7f9
Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors
2022-05-07 16:05:38 +02:00
spacek531
5659d43f46
Cleanup vehicle drawing code part 3 ( #16968 )
...
* Cleanup vehicle drawing code part 3
* Create functions to convert between rotation amounts
* Add regions to ease code navigation
2022-04-30 07:56:23 +01:00
Michael Steenbeek
c8d00a4a62
Merge pull request #16958 from IntelOrca/fix/16478-park-no-money
...
Fix #16478 : No money in .park scenarios
2022-04-16 22:13:50 +02:00
Ivan
9c04024537
Close #16933 : Rename car_visual to PaintStyle ( #16969 )
2022-04-11 23:18:18 -03:00
spacek531
5ecb7a6c6a
Cleanup vehicle drawing code part 2 ( #16960 ) ( #16960 )
...
* Rename assembly variable names
* Repurpose unused rct_ride_entry_vehicle field for NumRotationFrames
2022-04-10 21:26:00 +01:00
Ted John
11f4993c03
Remove no money scenerio flag
2022-04-09 12:36:31 +01:00
Hielke Morsink
5c4675a150
Fix: call to std::set_difference with unordered lists
2022-04-02 23:03:07 +02:00
Ted John
372606ab9a
Increment plugin API version
2022-03-24 23:18:55 +00:00
Ted John
818dcacb31
Add draw to image API
2022-03-24 22:37:22 +00:00
Ted John
8f30ed910f
Start working on custom image APIs
2022-03-24 22:37:21 +00:00
Ted John
a9d2c87d65
Bump plugin API version
2022-03-22 21:11:51 +00:00
Ted John
9f96b0df33
Separate map.change and map.changed events
...
Also fix network plugin logic.
2022-03-21 23:09:40 +00:00
Ted John
e4a10b8eb4
Fix and improve plugin startup / shutdown
2022-03-21 21:43:02 +00:00
Ted John
3864795a08
Improve safety on event handlers from windows
2022-03-21 21:42:30 +00:00
Ted John
13d261d115
Add API for getting the current game mode
2022-03-21 21:42:30 +00:00
Ted John
84fdd44e6a
Add map changed hook
2022-03-21 21:42:30 +00:00
Ted John
1128f76a97
Improve and fix intransient plugin branch
2022-03-21 21:42:30 +00:00
Ted John
dbf83f018c
Implement lifetime logic of transient plugins
2022-03-21 21:42:30 +00:00
Ted John
6fea0b5025
Start work on intransient plugins
2022-03-21 21:42:30 +00:00
Ted John
91ceecc6fc
Change ternary to tertiary for plugins ( #16833 )
2022-03-21 21:42:10 +00:00
Michael Steenbeek
e78c29ea5c
Fix most occurrences of ‘ternary’ ( #16832 )
2022-03-20 19:22:05 +01:00
Charles Machalow
37965560a9
Add ability for plugins to access ride's chain lift speed
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2022-03-20 15:20:28 +00:00
andrewpratt64
5ea89b9b47
Add function to get all entities on a tile to plugin api
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2022-03-20 15:20:08 +01:00
Charles Machalow
e27d5f154b
Add parameters to accept for StaffFireAction ( #16816 )
...
* Add parameters to accept for StaffFireAction
* Bump plugin api version
* Update src/openrct2/actions/StaffFireAction.cpp
Co-authored-by: Ted John <ted@brambles.org >
Co-authored-by: Ted John <ted@brambles.org >
2022-03-20 08:59:57 -03:00
Gymnasiast
ffe8b4b45d
Undo fspath() workaround for Android
2022-03-18 23:21:23 +01:00
Ted John
dff1d730da
Implement #13620 : [Plugin] Add support for patrol areas to Staff
2022-03-13 19:30:50 +00:00
Ted John
b7b8816db7
Add plugin hook for map save
2022-03-07 21:40:48 +01:00
Hielke Morsink
6ba0a3bd49
Use u8 strings when dealing with file paths
2022-03-01 22:12:39 +01:00
Ted John
ed8b7cb6ee
Change API for interacting with park storage
2022-02-24 23:55:23 +00:00
Ted John
1182ff5f19
Add Plugin API for storing data in .park files
2022-02-24 23:55:23 +00:00
Bas
b14c469232
Fix Car.rideObject from overflowing with more than 256 ride types
2022-02-23 21:33:40 +01:00
Hielke Morsink
2137cea3bb
Reduce use of UnderlyingType
2022-02-18 23:21:38 +02:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00
Michael Steenbeek
4c046024a3
Merge pull request #16640 from ZehMatt/refactor/entityid-16469
...
#16469 : Introduce EntityId and refactor everything
2022-02-18 21:29:23 +01:00
Ted John
007a33404e
Close plugin's windows gracefully when stopped
...
When a plugin is stopped, close all windows created by that plugin.
Ensure the close event on the window can not open a new window if the plugin is being stopped.
2022-02-17 20:18:30 +00:00
Ted John
105009f3f8
Fix #16591 : Plugins: setInterval and setTimeout is not disposed...
2022-02-17 20:18:16 +00:00
ζeh Matt
cd261fc7b2
Use DukValue for scripted entity id_get
2022-02-16 19:51:50 +02:00
ζeh Matt
512348a81d
Fix Clang format
2022-02-16 19:49:25 +02:00
ζeh Matt
02b816e38a
Bump up scripting API version
2022-02-16 19:42:09 +02:00
ζeh Matt
e46338a2f1
Fix scripting API returning 0 instead of null.
2022-02-16 19:41:59 +02:00
ζeh Matt
61751d551b
Push right amount of vehicles for vehicles_get
2022-02-16 19:38:20 +02:00