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
ee8a1a86c1
Add comments and null check
2020-04-30 02:18:32 +01:00
Ted John
7897df140d
Update src/openrct2/network/Network.cpp
...
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
2020-04-30 02:14:33 +01:00
Ted John
f642597098
Replace loop with std::find_if
2020-04-30 01:54:12 +01:00
Michael Steenbeek
a8f4a1e114
Use spaces throughout sprites.json ( #11536 )
...
Currently it has a mix of tabs and spaces.
2020-04-29 23:23:01 +02:00
Ted John
297fe537b6
Implement network.sendMessage(msg, players)
2020-04-28 22:02:14 +01:00
Ted John
d0154d08e9
Implement network join / leave hooks
2020-04-28 19:33:30 +01:00
Aaron van Geffen
dd9e579633
Add new OS requirements to changelog.txt
2020-04-28 20:31:35 +02:00
Ted John
1f39ac014a
Run network.chat hook for server chat messages
2020-04-28 17:31:12 +01:00
Duncan
96222ebace
Merge pull request #11509 from duncanspumpkin/entity_cleanup
...
Entity cleanup
2020-04-28 10:44:28 +01:00
Michael Steenbeek
6f6ea6399d
Merge pull request #11520 from Gymnasiast/refactor/oein2
2020-04-28 09:07:08 +02:00
duncanspumpkin
fed148648c
Use IsPeep in more places
2020-04-28 07:57:47 +01:00
Gymnasiast
a1cbaf9a46
Use OBJECT_ENTRY_INDEX_NULL in more places
2020-04-28 08:38:37 +02:00
Gymnasiast
99626e4fbb
Convert RCT12 research marker defines to constexpr
2020-04-28 08:38:16 +02:00
Gymnasiast
38748fc869
Create conversion functions for entry indices
2020-04-28 08:38:04 +02:00
duncanspumpkin
63549dee57
Ensure move_sprite_to_list only used in sprite.cpp
...
After an entity is created it should never need to call this function. This will be important in later changes when the lists are changed to vectors
2020-04-28 07:27:05 +01:00
OpenRCT2 git bot
5ac866c54a
Merge Localisation/master into OpenRCT2/develop.
2020-04-28 04:01:45 +00:00
Ted John
d8ded8d061
Update Windows dependencies to v24 ( #11517 )
...
Fixes #11510 : Cant start up game on last develop
Fixes #11294 : OpenRCT2 doesn't work on Windows Vista anymore
2020-04-27 20:38:19 -03:00
Ted John
2c731273c1
Fix #11494 : Old console commands don't work at headless console since plugin system ( #11508 )
2020-04-27 23:02:38 +02:00
Ted John
ecce4da6e8
Add ipAddress and publicHashKey properties to player API
2020-04-27 20:50:56 +01:00
duncanspumpkin
5b07a76f05
Use sprite_identifier when identifying entitys
...
The linked list index is only meant to be used for accessing the linked lists. Using the wrong variable is unlikely to cause issues for this exact case but it makes things cleaner.
2020-04-27 18:47:51 +01:00
Ted John
7b9fa972b6
Add addGroup, removeGroup, groups, players API
2020-04-27 18:39:42 +01:00
Ted John
06bbf5ddda
Implement SmallSceneryObject for getObject plugin API ( #11489 )
2020-04-27 18:41:49 +02:00
Michael Steenbeek
2e50cd44ba
Refactor ride_list_item to RideSelection ( #11505 )
2020-04-27 16:26:35 +02:00
Duncan
3c89d5ec12
Fix #11490 . Crash with error message titles ( #11502 )
...
Error message titles for rides are composed from the ride name string id and therefore require passing the error message args.
2020-04-27 15:22:33 +02:00
Michael Steenbeek
bcabc1d807
Merge pull request #11457 from Gymnasiast/refactor/rtd-forever
...
More RTD + cleanup
2020-04-27 15:11:54 +02:00
OpenRCT2 git bot
e6d5364bf4
Merge Localisation/master into OpenRCT2/develop.
2020-04-27 04:01:46 +00:00
Ted John
af625f95c3
Fix two property names in peep plugin documentation ( #11487 )
2020-04-27 02:23:02 +02:00
Ted John
f9909e76f2
Merge pull request #11320 from IntelOrca/epic/plug-in-4
...
Implement THE PLUGIN SYSTEM!
2020-04-26 22:50:30 +01:00
Duncan
b9d37573bf
Merge pull request #11463 from hdpoliveira/vehicle_update_9473_01
...
Part of #9473 : Create Vehicle::UpdateMeasurements
2020-04-26 20:36:28 +01:00
hdpoliveira
b696c0829a
Replace 8 by COORDS_Z_STEP
2020-04-26 16:13:01 -03:00
hdpoliveira
3b70b43449
snake_case to camelCase
2020-04-26 16:13:01 -03:00
hdpoliveira
cd02e28b31
Part of #9473 : Create Vehicle::UpdateMeasurements
...
Converted from vehicle_update_measurements
2020-04-26 16:13:00 -03:00
Ted John
3c02861c63
Increment network version
2020-04-26 16:01:40 +01:00
Ted John
ca98ffc697
Implement onClose event for custom windows
2020-04-26 16:01:03 +01:00
Ted John
c0aa5bdcc8
Create plugin directory automatically
2020-04-26 14:52:57 +01:00
Ted John
90f3a9b846
Add dukglue and duktape copyright information
2020-04-26 14:49:21 +01:00
Breno Rodrigues Guimarães
305b4d4957
Fix #11469 : Clear memory but dont increment buffer position ( #11472 )
...
Fix a regression from #11412 that did:
set_format_arg(0, rct_string_id, ...)
set_format_arg(4, uint32_t, 0)
ride->FormatNameTo(gCommonFormatArgs + 2)
Notice it continues from byte 2, and not 8.
So the `set_format_arg(4, uint32_t... )` was just
for clearing memory, not for adding a new argument
2020-04-26 10:48:35 -03:00
Ted John
7041b0793e
Fix tile type literals
2020-04-26 14:42:13 +01:00
Ted John
51ed760409
Fix FileWatcher header file
2020-04-26 14:35:09 +01:00
Ted John
2d43ac5936
Try using int32_t instead of size_t
2020-04-26 14:35:09 +01:00
Michał Janiszewski
a0877d1518
Improve dukglue's includes
2020-04-26 14:35:08 +01:00
Ted John
2c4cf49fb1
Add more const
2020-04-26 14:35:08 +01:00
Ted John
a6eeb8c7c4
Add const to ticksElapsed_get
2020-04-26 14:35:08 +01:00
Ted John
b553850307
Add minimum API version information to scripting readme
2020-04-26 14:35:08 +01: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
4162ad0eb6
Remove unused getWindow parameter
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
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