Gymnasiast
1426010652
Plugin: use ObjectEntryIndex for music and entrance style
2021-09-12 18:33:27 +02:00
Gymnasiast
3e1544aac8
Add missing object types to ObjectTypeToString()
2021-09-12 18:31:21 +02:00
ζeh Matt
516232e0a7
Change static casts to EnumValue
2021-09-10 19:10:15 +03:00
ζeh Matt
8a21bd01c6
Bump up scripting version
2021-09-10 19:10:14 +03:00
ζeh Matt
eda3188ecf
Fix rebase
2021-09-10 19:10:13 +03:00
ZehMatt
3ad72baaae
Cast fixes
2021-09-10 19:10:12 +03:00
Michael Steenbeek
624a32e93b
Make Coords isNull/setNull functions TitleCase ( #15382 )
2021-09-08 20:48:53 -03:00
Gymnasiast
4cc717ccdb
Rework path surface and railings descriptor handling
2021-09-05 19:09:09 +02:00
Hielke Morsink
e0751d707f
Fix #15298 : Crash on map.getAllEntities from in-game console ( #15301 )
2021-08-28 17:43:11 +02:00
ZehMatt
de364aa15a
Rename type SpriteBase to EntityBase
2021-08-26 15:37:16 +03:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Hielke Morsink
15ba3d3229
Fix compiler warning C4702 in ScMap.cpp
...
Co-authored-by: ZehMatt <m.moninger.h@gmail.com >
Co-authored-by: Ted John <ted@brambles.org >
2021-08-16 23:36:58 +02:00
ZehMatt
055ef31912
Fix compile error for missing return
2021-08-11 22:15:37 +03:00
ZehMatt
5a69f22f2d
Move ScTile code into cpp
2021-08-11 22:15:37 +03:00
ZehMatt
9f95b006d3
Move ScTileElement into its own files
2021-08-11 22:15:37 +03:00
ZehMatt
4684f39df9
Move ScPark code into cpp
2021-08-11 22:15:36 +03:00
ZehMatt
d558920606
Move ScParkMessage into its own files
2021-08-11 22:15:36 +03:00
ZehMatt
437321ac8f
Move ScMap code into cpp
2021-08-11 22:15:36 +03:00
ZehMatt
53c5519cb3
Fix missing include and guard functions with network macro
2021-08-11 22:15:36 +03:00
ZehMatt
1848dd7839
Remove copy paste mistake #pragma once
2021-08-11 22:15:36 +03:00
ZehMatt
2bd348c39e
Move ScRide into a cpp file
2021-08-11 22:15:36 +03:00
ZehMatt
fe57dece6b
Move ScRideStation into its own files
2021-08-11 22:15:36 +03:00
ZehMatt
99eee53c60
Move ScNetwork and ScPlayer into their own files
2021-08-11 22:15:35 +03:00
ZehMatt
64b57734e1
Move ScPlayerGroup into its own files
2021-08-11 22:15:35 +03:00
ZehMatt
68a795d607
Fix include
2021-08-11 22:15:35 +03:00
ZehMatt
371bbc0675
Move ScLitter to its own files
2021-08-11 22:15:35 +03:00
ZehMatt
2e951877cb
Move ScPeep ScGuest and ScStaff to their own files
2021-08-11 22:15:35 +03:00
ZehMatt
33e2878d2d
Move ScVehicle into its own files
2021-08-11 22:15:35 +03:00
ZehMatt
82451b031a
Fix declaration
2021-08-11 22:15:34 +03:00
ZehMatt
244025ec17
Fix includes
2021-08-11 22:15:34 +03:00
ZehMatt
adf5829cd6
Re-arrange structure of scripting
2021-08-11 22:15:34 +03:00
Michael Steenbeek
1168425f14
Fix compilation on Ubuntu 20.04 / GCC 9
2021-08-11 16:37:42 +02:00
Basssiiie
23bae61b7a
Add new plugin API properties to entity, ride and park
2021-08-11 13:54:00 +02:00
ZehMatt
29e5ec634c
Add litter entity to scripting
2021-08-07 22:28:48 +03:00
ZehMatt
94daa1e42c
Bump up scripting version
2021-08-07 22:05:15 +03:00
ZehMatt
5e3913965d
Add scripting API to create entities
2021-08-07 22:05:14 +03:00
ZehMatt
c1d97b845e
Small cleanup in ScMap.hpp
2021-08-07 22:05:14 +03:00
Michael Steenbeek
e3c918ba5b
Merge pull request #15174 from ZehMatt/scripting/deperecate-peep
...
Deprecate peep in scripting
2021-08-07 20:45:48 +02:00
ZehMatt
900f9c9190
Apply code review
2021-08-07 20:33:43 +03:00
ZehMatt
aa2b7d9972
Deprecate peeps property in scripting for Car entity
2021-08-05 17:16:42 +03:00
ZehMatt
a7bef5442b
Allow plugins to target a specific API version
2021-08-05 17:16:42 +03:00
ZehMatt
af102e391e
Return correct entity type, API breaking change
2021-08-05 17:16:42 +03:00
ZehMatt
8f23670df8
Bump up scripting version
2021-08-05 17:16:42 +03:00
ZehMatt
78cff6e293
Implement getter for "guest" and "staff" types in getAllEntities
2021-08-05 17:16:42 +03:00
Ted John
5f853df1fd
Remove gS6Info
2021-08-02 20:38:02 +02:00
Gymnasiast
277317b6f1
Bump network and plug-in API version
2021-08-01 15:15:33 +02:00
Ted John
70d9c1438e
Change most things and formatting to money64
2021-08-01 15:14:42 +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
ZehMatt
d9f9e7542a
Use EnumMap for HookEngine lookups
2021-07-29 17:07:49 +03:00
ZehMatt
f44687b6b2
Use EnumMap for lookup tables in scripting
2021-07-29 17:07:48 +03:00