Ted John
e5107141e9
Add plugin API for park flags
2020-09-13 15:00:09 +01:00
Gymnasiast
c83ddefe47
Convert remaining C-style casts to C++-style ones
2020-09-10 21:36:20 +02:00
Duncan
353c02b596
Add visitors for all scenery placement and removes ( #12886 )
...
* Add visitors for all scenery placement and removes
This should allow greater flexibility for plugin developers
* Add CoordsXYZ visitor
* Increment plugin API version. Update changelog
2020-09-10 15:15:46 -03:00
Tom Parsons
9a30100a81
Make all GameAction types accessible to plugins ( #12708 )
...
* add ActionType
* Make all game actions available to plugins
Includes list of game actions in the .d.ts
* Add an overload for internal game actions
This allows things like Visual Studio Code to autocomplete
* action can be a string (custom gameactions)
* Increment OPENRCT2_PLUGIN_API_VERSION
* Add #12708 to changelog and tombomp to contributors.
2020-09-10 12:30:56 +01:00
Ted John
858bb4045f
Explicitly close sockets when plugin is stopped
2020-09-03 22:38:42 +01:00
Ted John
0bddf5a5db
Rename SocketServer to Listener
2020-09-03 22:38:42 +01: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
Nils Caspar
bc33ef3d43
Add Park.entranceFee to the plugin API ( #12840 )
2020-09-03 17:07:19 -03:00
Cory Sanin
8d366ebaea
Add Ride.totalProfit to the plugin API ( #12795 )
...
Add Ride.totalProfit to the plugin API
2020-08-28 22:52:54 +01:00
Ted John
c5b2b2017a
Add vehicle API for plugins
2020-06-11 17:54:36 +01:00
Michael Steenbeek
9ef8d6da42
Convert most remaining C-style casts to C++-style ones ( #11867 )
2020-06-07 23:18:11 +02:00
Ted John
819208f3cb
Add more ride fields to plugin API
2020-05-23 15:28:03 +01:00
Michael Steenbeek
7e7b15812d
Merge pull request #11747 from IntelOrca/plugin/small-additions
...
[Plugin] Add language and split peep into guest and staff
2020-05-20 10:24:24 +02:00
Ted John
03b1974912
Add plugin API for editing park messages ( #11755 )
2020-05-18 22:59:35 -03:00
Ted John
b710e417df
Split peep into guest and staff and add more fields
2020-05-14 18:35:21 +01:00
Ted John
7c0da8a32d
Add peep flags and destination
2020-05-14 18:34:25 +01:00
Ted John
e182791a6b
Merge pull request #11685 from IntelOrca/plugin/listview-widget
...
[Plugin] Implement the list view widget
2020-05-10 22:36:44 +01:00
Ted John
5288caec02
[Plugin] Add support for SetCheatAction and cheat retrieval ( #11700 )
...
* Add cheats interface API
* Add plugin support for SetCheatAction
* Remove ctx from ScCheats
2020-05-10 13:02:10 -03:00
Ted John
5e427413a6
Refactor list view so we can access it from ScWidget
2020-05-09 17:24:15 +01:00
Tulio Leao
16c5960e99
Merge pull request #11635 from IntelOrca/plugin/ride-game-actions
...
[Plugin] Add named parameters for ride related game actions
2020-05-09 10:46:41 -03:00
Ted John
59ab39178f
Add most fields from RideObject struct
2020-05-08 15:28:48 +01:00
Ted John
ec7b52d555
Add action and args to GameActionResult
2020-05-05 18:00:56 +01:00
Ted John
6c8d199831
Add parameter visitors to ride related actions
2020-05-05 18:00:56 +01:00
Ted John
e3016cdc03
Fix plugin game action hook player and result ( #11587 )
...
- Player was not being attached to the game action event args.
- OpenRCT2 was looking for error on the event args object rather than the result sub object.
2020-05-02 11:45:05 +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
06bbf5ddda
Implement SmallSceneryObject for getObject plugin API ( #11489 )
2020-04-27 18:41:49 +02:00
Ted John
c67962577a
Rename __ENABLE_SCRIPTING__ to ENABLE_SCRIPTING
2020-04-26 14:35:08 +01:00
Ted John
4ebd8da630
Revert change to RemoveCustomGameActions
2020-04-26 14:35:08 +01:00
Ted John
ad75cb0754
Update src/openrct2/scripting/ScriptEngine.cpp
...
Co-Authored-By: Breno Rodrigues Guimarães <brenorg@gmail.com >
2020-04-26 14:35:08 +01:00
Ted John
2f525e0539
Apply more code review comments
2020-04-26 14:35:07 +01:00
Ted John
ea632a8eed
Rename thing to entity
2020-04-26 14:35:07 +01:00
Ted John
b7b1920a79
Fix build
2020-04-26 14:35:06 +01:00
Ted John
76ebef10e3
Add APIs for getting info about loaded objects
2020-04-26 14:35:06 +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
a16cacff3a
Add special properties for ride action
2020-04-26 14:35:05 +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
83fe0cf5c5
Implement strings for GameAction errors
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
f8394953aa
Get thing inhertiance working
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
Ted John
00293d20e8
Fix compile
2020-04-26 14:35:04 +01:00
Ted John
e6ca727b4b
Improve dumping of expressions
2020-04-26 14:35:04 +01:00
Ted John
dfd45651dc
Improve stringify of expressions
2020-04-26 14:35:04 +01:00
Ted John
177c1a16a7
Always allow game state to be mutated in single player
2020-04-26 14:35:03 +01:00