1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
Taylor Stieff
f7f5124c07 Make tile element direction accessible for scripts (#12057)
* Make tile element direction accessible for scripts

Add the direction field from the tile element
class to the ScTileElement class passed to
the script engine.

Co-authored-by: Taylor Stieff <taylor.stieff@heavenhr.de>
2020-08-01 00:46:59 -03:00
Ted John
be9f3e1f66 [Plugin] Ensure modified entities and tile elements are invalidated (#11682) 2020-05-09 16:13:56 +02:00
Hielke Morsink
b39c673456 Introduce constant MAX_ELEMENT_HEIGHT 2020-05-05 11:35:42 +02:00
Hielke Morsink
f88951eb33 Add isHidden field to plug-in TileElements
With this field, plug-in creators are encouraged to use `isHidden` rather than spawning corrupt elements to hide other tile elements, and their scripts won't need updating when `isHidden` becomes a real field that does not alter anything other than the element itself.
2020-05-05 00:16:09 +02:00
Hielke Morsink
e5b1508694 Rename openrct2_corrupt to openrct2_corrupt_deprecated 2020-05-03 13:47:48 +02:00
Ted John
7041b0793e Fix tile type literals 2020-04-26 14:42:13 +01:00
Ted John
2d43ac5936 Try using int32_t instead of size_t 2020-04-26 14:35:09 +01:00
Ted John
2c4cf49fb1 Add more const 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
6cbea2fd37 Change baseZ / clearanceZ to baseHeight / clearanceHeight 2020-04-26 14:35:07 +01:00
Ted John
2f525e0539 Apply more code review comments 2020-04-26 14:35:07 +01:00
Ted John
f12f439309 Fix errors after rebase 2020-04-26 14:35:06 +01:00
Ted John
b9f3886ca8 Implement more footpath APIs 2020-04-26 14:35:06 +01:00
Ted John
b7b1920a79 Fix build 2020-04-26 14:35:06 +01:00
Ted John
098e6839e2 Fix build after rebase 2020-04-26 14:35:06 +01:00
Ted John
49b155d178 Fix Linux build 2020-04-26 14:35:05 +01:00
Ted John
4e12c9541e Implement more tile element APIs 2020-04-26 14:35:05 +01:00
Ted John
82639bae1b Implement more tile element APIs 2020-04-26 14:35:04 +01:00
Ted John
63b10166ac Add more surface element APIs 2020-04-26 14:35:04 +01:00
Ted John
4d5e7f19ca Implement surface style API and improve plugin calling 2020-04-26 14:35:04 +01:00
Ted John
32d72471b8 Add more tile APIs 2020-04-26 14:35:04 +01:00
Ted John
e6341f0a42 Get scripting compiling on clang 2020-04-26 14:35:03 +01:00
Ted John
a5c8ff920f Add game mutable protection 2020-04-26 14:35:03 +01:00
Ted John
0ec4475d62 Implement tile x, y coordinates 2020-04-26 14:35:02 +01:00
Ted John
ab5bfffde0 Fix tile element scripting 2020-04-26 14:35:01 +01:00
Ted John
5bd58118b5 Get the plugin branch building again 2020-04-26 14:35:00 +01:00
Hielke Morsink
d7123834df Expose more footpath and footpath-adition properties 2020-04-26 14:35:00 +01:00
Hielke Morsink
9b2ed0d641 Expose properties for path scenery 2020-04-26 14:35:00 +01:00
Hielke Morsink
bec9c4da65 Expose surface element properties 2020-04-26 14:35:00 +01:00
Hielke Morsink
e8bdb95f13 format new files
Since many of the changes were made before the clang-format changes went live, the new source files used a different format still. This PR applies the new style to all the new source files.
2020-04-26 14:35:00 +01:00
Hielke Morsink
c37d7d859e Use C++ types 2020-04-26 14:35:00 +01:00
Hielke Morsink
c064614280 Use new copyright/license notice 2020-04-26 14:35:00 +01:00
Hielke Morsink
34b5aab6c0 Add new tile element classes for each type
This introduces some template code  to get around the problem of properties not being available for child-elements. I've tried to make clear what it's for by adding a comment.

So far only the Track element has an extra property (rideIndex), but it's fairly easy to add new ones.
2020-04-26 14:35:00 +01:00
Ted John
7047dec1d9 Get custom drop downs working
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2020-04-26 14:34:59 +01:00
Ted John
a6bb9a9b64 Add tile element support 2020-04-26 14:34:59 +01:00