Michael Steenbeek
31e2d7692c
Rename more instances of “vehicle” to “train”
2022-09-22 11:22:18 +02:00
Bas
885be63797
Rename subposition rotations to yaw, pitch, roll
2022-09-03 09:34:16 +02:00
Bas
8c39881353
Implement plugin getter for subposition coordinates
2022-09-02 23:19:15 +02:00
Bas
7b5aeece59
Implement plugin getters for subposition and subposition length
2022-09-02 23:18:29 +02:00
Hielke Morsink
7f29e4e39c
Make rct_windowclass strong type WindowClass
...
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Duncan
adc51ad9aa
Rework rct_vehicle_colour ( #16051 )
...
* Remove rct_vehicle_colour and replace with VehicleColour
* Update network version
* Update replay version
2022-08-13 19:30:30 +00:00
Hielke Morsink
e2da19f0f7
Add missing includes
2022-07-29 18:45:10 +02:00
Sadret
1c7c4c14c2
Add tertiary colour for large scenery to plugin API ( #17314 )
...
Add tertiaryColour to ScTileElement.
2022-06-09 20:03:32 +01:00
Michael Steenbeek
3fae2413db
Use “car” instead of the ambiguous “vehicle”, part 1
...
Currently, the word “vehicle” is used for both “train” and “car”. This is a first effort towards disambiguation.
2022-06-07 20:36:20 +00:00
spacek531
673ec0fa10
Frames rotation count part 1 ( #17106 )
...
Refactor vehicle sprite groups
rename rotationType to spriteGroup
remove numframes getters from scobject
add sprite groups getters
add documentation to plugin
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2022-06-03 23:03:02 +01:00
Ted John
97c0c4e052
Merge pull request #16975 from IntelOrca/plugin/track-segments
...
[Plugin] Add APIs for track segments and track iteration
2022-05-26 20:33:53 +01:00
Ted John
31764f62c6
Change track segment API to use null
2022-05-17 19:33:04 +01:00
Ted John
7af322f8eb
Fix build due to unused field
2022-05-17 19:27:39 +01:00
Ted John
71a6e2bf74
Add angle and banking to track segment
2022-05-17 19:27:39 +01:00
Ted John
bf1e3412a5
Add extra fields to TrackSegment
2022-05-17 19:27:39 +01:00
Ted John
8c593709fa
Add more properties to track segment
2022-05-17 19:27:39 +01:00
Ted John
b39f7643f0
Fix iterator issues
2022-05-17 19:27:39 +01:00
Ted John
4eef86dc50
Implement track iterator
2022-05-17 19:27:39 +01:00
Ted John
76601ef6fc
Add API for getting track segments
2022-05-17 19:27:39 +01:00
Sadret
4cc2f31181
Fix inverted condition in ScTileElement.hpp
2022-05-17 19:25:28 +02:00
Hielke Morsink
a67e805e60
Log messages with new LogPluginInfo function
2022-05-09 21:17:55 +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
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
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
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
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
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
ζ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
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
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00