Ted John
1182ff5f19
Add Plugin API for storing data in .park files
2022-02-24 23:55:23 +00:00
ζeh Matt
02b816e38a
Bump up scripting API version
2022-02-16 19:42:09 +02:00
Ted John
83c347218b
Allow plugins to call change map size game action
2022-02-14 23:15:59 +00: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
186d3efb59
Merge pull request #16092 from ZehMatt/refactor/timing
...
Refactor update/time related things
2021-12-17 10:08:42 -08:00
Sadret
8282579b63
Close #16251 : Improve null handling in plugin API
2021-12-16 21:41:02 +01:00
ζeh Matt
94e20ba7fe
Rename some Update functions to Tick
2021-12-13 19:04:48 +02:00
Ted John
a324bfab63
Add image manager plugin API ( #16144 )
2021-12-07 20:55:27 +00:00
Sadret
03d2ddf265
Implement #16029 : Add rideType to plugin API ( #16030 )
2021-12-01 13:39:03 +00:00
Ted John
c2d892bdce
Increment plugin API version
...
This should have been done for NSF, allows plugins to easily determine NSF feature availability.
2021-11-24 22:55:19 +00:00
ζeh Matt
83b911b193
#15634 : Refactor passing GameActions::Result by copy ( #15951 )
...
* Refactor to result GameActions::Result as copy instead of unique_ptr
* Remove alias GameActions::Result::Ptr
* Remove MakeResult wrapper
* Remove type forwarder in TileInspector
2021-11-24 07:35:08 +00:00
ζeh Matt
96e2641d0d
Remove macro for registration and cleanup
2021-11-10 19:42:23 +02:00
Bas
8682a8677e
Fix unable to read litter information in plugin api
2021-10-16 15:38:52 +02:00
ζeh Matt
8a21bd01c6
Bump up scripting version
2021-09-10 19:10:14 +03:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Basssiiie
23bae61b7a
Add new plugin API properties to entity, ride and park
2021-08-11 13:54:00 +02:00
ZehMatt
94daa1e42c
Bump up scripting version
2021-08-07 22:05:15 +03:00
ZehMatt
900f9c9190
Apply code review
2021-08-07 20:33:43 +03:00
ZehMatt
a7bef5442b
Allow plugins to target a specific API version
2021-08-05 17:16:42 +03:00
ZehMatt
8f23670df8
Bump up scripting version
2021-08-05 17:16:42 +03:00
Gymnasiast
277317b6f1
Bump network and plug-in API version
2021-08-01 15:15:33 +02:00
andrewpratt64
62d66ca9d0
Add hook for vehicle crashes to plugin api ( #15084 )
...
* Add initial implementation of "vehicle.crash" hook for the scripting api
The hook will fire whenever a vehicle crashes, i.e. an individual car
explodes and it's status becomes "Crashed!"
* Update contributors.md
Add name to contributors list under the "Additional implementation (OpenRCT2)" section.
- If the added line needs to be changed or removed entirely let me know
- I added this based off of the Github wiki: "If it's the first time you're contributing with the project, make sure to update the contributors.md file by appending your name at the end of the respective list."
* Move hook code into function
* Rename hook function
Renamed function, "FireVehicleCrashHook" to "InvokeVehicleCrashHook"
* Wrap InvokeVehicleCrashHook in #ifdef
Move the #ifdef from inside the function body to the outside
* Update changelog and api version
- Added entry to changelog
- Increment API version
* Fix whitespace
Replace tab character with four spaces
* Update src/openrct2/scripting/HookEngine.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2021-07-30 09:03:15 -03:00
Duncan
7253b92cfd
Use correct function call for WallPlaceAction plugin visitor ( #14806 )
...
* Use correct function call for WallPlaceAction plugin visitor
* Increment plugin version
* Update changelog
2021-06-02 21:30:49 +01:00
Ryan
d309a7c871
Add climate information to Park API ( #14636 )
2021-05-16 21:06:36 -03:00
Ryan
8a282fa31c
Add more properties to Park API ( #14620 )
...
* Add more properties to Park API
* Add new feature to changelog
2021-05-11 12:46:15 +01:00
Ryan
eb9ed63b0e
Fix some actions for plugins ( #14607 )
...
* Fix some actions for plugins
If an action doesn't have an AcceptParameters method, the paramaters passed in executeAction will be ignored and the action will fail.
* Change plugin parameter names
* Increment plugin API version
2021-05-09 22:04:03 +01:00
Basssiiie
6c65105261
Add getter for current plugin api version ( #14538 )
2021-04-27 21:08:56 -03:00
Ted John
93f17f1175
Add custom widget logic and network stats API
2021-02-24 22:37:31 +00:00
skdltmxn
c093a50f3f
Refactor to use string_view more properly
2021-01-07 01:52:10 +09:00
Ted John
6fb7921dbd
[Plugin] Add context.setInterval and context.setTimeout
2021-01-03 16:08:35 +01:00
Ted John
5a849ededf
Fix plugin crash when nested scope occurs ( #13556 )
2020-12-09 22:38:15 -03:00
ζeh Matt
645289f4ec
Rename GameActionResult and use GameActions namespace instead ( #13184 )
2020-10-14 22:04:39 -03:00
Ted John
173a42f656
Apply code review suggestions
2020-09-03 22:38:42 +01:00
Ted John
1c91404707
Add more network guards
2020-09-03 22:38:42 +01:00
Ted John
dce547af99
Start implementing TCP API
2020-09-03 22:38:35 +01:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Ted John
7c0da8a32d
Add peep flags and destination
2020-05-14 18:34:25 +01:00
Ted John
65a9c7a1b1
Implement expenditureType on GameActionResult plugin API ( #11514 )
...
* Implement expenditureType on GameActionResult plugin API
* Update src/openrct2/scripting/ScriptEngine.cpp
Co-Authored-By: Michael Steenbeek <m.o.steenbeek@gmail.com >
* Improve formatting of ExpenditureTypes
* Apply code review comments
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-05-01 17:50:11 +01:00
Ted John
bbe7ff0d80
Refactor game action binding for plugins ( #11528 )
...
* Refactor game action binding for plugins
Adds parameter visiting for game actions to reduce code needed for binding game actions to JavaScript objects
* Apply suggestions from code review
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com >
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-04-30 06:56:57 -03:00
Ted John
c67962577a
Rename __ENABLE_SCRIPTING__ to ENABLE_SCRIPTING
2020-04-26 14:35:08 +01:00
Ted John
4e1fa6a944
Update src/openrct2/scripting/ScriptEngine.h
...
Co-Authored-By: Breno Rodrigues Guimarães <brenorg@gmail.com >
2020-04-26 14:35:08 +01:00
Ted John
ea8890aaaa
Improve shared storage read / write
2020-04-26 14:35:06 +01:00
Ted John
0c71886941
Implement shared storage
2020-04-26 14:35:06 +01:00
Ted John
efcf9fd22a
Implement hooking game actions
2020-04-26 14:35:05 +01:00
Ted John
49b155d178
Fix Linux build
2020-04-26 14:35:05 +01:00
Ted John
2ad37db817
Implement registering game actions
2020-04-26 14:35:05 +01:00
Ted John
4e4379e6ef
Start work on custom game actions
2020-04-26 14:35:05 +01:00
Ted John
4d5e7f19ca
Implement surface style API and improve plugin calling
2020-04-26 14:35:04 +01:00