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
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
Ted John
454bfb0a8f
Refactor map size to allow for rectangle maps
2022-02-14 23:15:59 +00:00
ζeh Matt
06e430157f
Use RideId::GetNull and RideId::IsNull over constant
2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883
Fix all uses of RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
269673e3aa
Profiler update ( #16463 )
...
* Add more functions to be profiled
* Add isEnabled method to Profiler scripting interface
* Bump up scripting version
* Apply review suggestions
2022-01-29 15:29:08 +02:00
ζeh Matt
993b168bfd
Implement profiler ( #16194 )
...
* Implement profiling API
* Add console commands for the profiler
* Remove accidental line
* Correct csv output
* Add copyright notice
* Add missing override
* Add default virtual destructor
* Explicitly pass template argument
* Use static
* Add plugin API for profiler
* Add more profile calls
* Workaround for GCC hopefully
* Add missing static keyword
* Use uint64 for call count
* Reduce name length see if CI passes
* Improve handling of function names
* Work around (broken) static inline variables
* Fix missing include
* Disable profiler for clang 5 and older
* Update copyright date
* Profile UpdateAllMiscEntities
* Apply review suggestions
Co-authored-by: Ted John <ted@brambles.org >
2022-01-18 20:21:20 +02:00
Gymnasiast
10301507a9
Fix Android
2022-01-08 16:58:57 +01:00
Sadret
8282579b63
Close #16251 : Improve null handling in plugin API
2021-12-16 21:41:02 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
ζeh Matt
cec30e093d
Merge pull request #15991 from ZehMatt/refactor/bannerid
...
Use TIdentifier for BannerIndex
2021-12-11 08:08:27 -08:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
fc3ce3294c
Move over switches to normalised tile element types
2021-12-11 00:30:59 +01:00
Gymnasiast
bedcba5ea8
Use SetTypeN() in ScTileElement.cpp
2021-12-10 23:05:56 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
Gymnasiast
91635a5047
Replace SetType and old strong enum with normalised
2021-12-05 13:54:01 +01:00
Sadret
03d2ddf265
Implement #16029 : Add rideType to plugin API ( #16030 )
2021-12-01 13:39:03 +00:00
ζeh Matt
810521bd5b
Remove BANNER_INDEX_NULL
2021-12-01 14:41:59 +02:00
ζeh Matt
63a2e9d716
Refactor uses of old BannerIndex
2021-12-01 14:41:59 +02:00