Ted John
11f4993c03
Remove no money scenerio flag
2022-04-09 12:36:31 +01:00
Ted John
13d261d115
Add API for getting the current game mode
2022-03-21 21:42:30 +00:00
Ted John
84fdd44e6a
Add map changed hook
2022-03-21 21:42:30 +00:00
Ted John
91ceecc6fc
Change ternary to tertiary for plugins ( #16833 )
2022-03-21 21:42:10 +00:00
Michael Steenbeek
e78c29ea5c
Fix most occurrences of ‘ternary’ ( #16832 )
2022-03-20 19:22:05 +01:00
Charles Machalow
37965560a9
Add ability for plugins to access ride's chain lift speed
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-03-20 15:20:28 +00:00
andrewpratt64
5ea89b9b47
Add function to get all entities on a tile to plugin api
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-03-20 15:20:08 +01:00
Gymnasiast
ffe8b4b45d
Undo fspath() workaround for Android
2022-03-18 23:21:23 +01:00
Ted John
dff1d730da
Implement #13620 : [Plugin] Add support for patrol areas to Staff
2022-03-13 19:30:50 +00:00
Ted John
ed8b7cb6ee
Change API for interacting with park storage
2022-02-24 23:55:23 +00:00
Ted John
1182ff5f19
Add Plugin API for storing data in .park files
2022-02-24 23:55:23 +00:00
Bas
b14c469232
Fix Car.rideObject from overflowing with more than 256 ride types
2022-02-23 21:33:40 +01:00
Hielke Morsink
2137cea3bb
Reduce use of UnderlyingType
2022-02-18 23:21:38 +02:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
ζeh Matt
cd261fc7b2
Use DukValue for scripted entity id_get
2022-02-16 19:51:50 +02:00
ζeh Matt
512348a81d
Fix Clang format
2022-02-16 19:49:25 +02:00
ζeh Matt
e46338a2f1
Fix scripting API returning 0 instead of null.
2022-02-16 19:41:59 +02:00
ζeh Matt
61751d551b
Push right amount of vehicles for vehicles_get
2022-02-16 19:38:20 +02:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
Ted John
454bfb0a8f
Refactor map size to allow for rectangle maps
2022-02-14 23:15:59 +00:00
ζeh Matt
06e430157f
Use RideId::GetNull and RideId::IsNull over constant
2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883
Fix all uses of RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02: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
993b168bfd
Implement profiler ( #16194 )
...
* Implement profiling API
* Add console commands for the profiler
* Remove accidental line
* Correct csv output
* Add copyright notice
* Add missing override
* Add default virtual destructor
* Explicitly pass template argument
* Use static
* Add plugin API for profiler
* Add more profile calls
* Workaround for GCC hopefully
* Add missing static keyword
* Use uint64 for call count
* Reduce name length see if CI passes
* Improve handling of function names
* Work around (broken) static inline variables
* Fix missing include
* Disable profiler for clang 5 and older
* Update copyright date
* Profile UpdateAllMiscEntities
* Apply review suggestions
Co-authored-by: Ted John <ted@brambles.org>
2022-01-18 20:21:20 +02:00
Gymnasiast
10301507a9
Fix Android
2022-01-08 16:58:57 +01:00
Sadret
8282579b63
Close #16251 : Improve null handling in plugin API
2021-12-16 21:41:02 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
ζeh Matt
cec30e093d
Merge pull request #15991 from ZehMatt/refactor/bannerid
...
Use TIdentifier for BannerIndex
2021-12-11 08:08:27 -08:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
fc3ce3294c
Move over switches to normalised tile element types
2021-12-11 00:30:59 +01:00
Gymnasiast
bedcba5ea8
Use SetTypeN() in ScTileElement.cpp
2021-12-10 23:05:56 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
Gymnasiast
91635a5047
Replace SetType and old strong enum with normalised
2021-12-05 13:54:01 +01:00
Sadret
03d2ddf265
Implement #16029 : Add rideType to plugin API ( #16030 )
2021-12-01 13:39:03 +00:00
ζeh Matt
810521bd5b
Remove BANNER_INDEX_NULL
2021-12-01 14:41:59 +02:00
ζeh Matt
63a2e9d716
Refactor uses of old BannerIndex
2021-12-01 14:41:59 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Duncan
275d565e52
Start splitting up ride.h ( #16011 )
...
* Start splitting up ride.h
* Use cstdint instead of common.h
2021-11-26 15:03:14 +00:00
ζeh Matt
56e78d5733
Merge pull request #15985 from ZehMatt/refactor/entities2
...
Refactor Sprite to Entity
2021-11-25 12:53:50 -08:00
ζeh Matt
03fb9b390f
Rename Sprite to EntityRegistry
2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c
Fix includes
2021-11-24 16:48:33 +02:00
ζeh Matt
c6242fd310
More renaming
2021-11-24 15:50:18 +02: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
IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Hielke Morsink
941c5b00b0
Use String::ToUpper in TransformPermissionKeyToInternal
2021-11-06 18:41:32 +01:00
Hielke Morsink
76b5479bbb
Fix undefined use of cctype functions
2021-11-06 16:27:54 +01:00
Duncan
3f19d6f7d7
Split Peep header Guest into separate header ( #15810 )
...
* Move guest functions and classes to guest header
* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
Duncan
a8d2d5fd44
Staff patrol area 2 from NSF ( #15600 )
...
* Port over changes from NSF for staff
* Fix import and export
* Fix crash on export
* Fix import issue
* Fix patrol import issue
* Remove staff id field
* Increment network version
* Actually remove all instances of staff id
* Update replays
2021-10-27 21:19:10 +01:00
Bas
8682a8677e
Fix unable to read litter information in plugin api
2021-10-16 15:38:52 +02:00
Hielke Morsink
94144bcd89
Remove some dead code
...
Reported by clang
clang-analyzer-deadcode.DeadStores
2021-09-30 10:40:32 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Michael Steenbeek
5d039a5f55
Use std::string_view instead of C string
...
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2021-09-12 18:45:53 +02:00
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
eda3188ecf
Fix rebase
2021-09-10 19:10:13 +03:00
Gymnasiast
4cc717ccdb
Rework path surface and railings descriptor handling
2021-09-05 19:09:09 +02:00
ZehMatt
de364aa15a
Rename type SpriteBase to EntityBase
2021-08-26 15:37:16 +03: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