Commit Graph
220 Commits
Author SHA1 Message Date
James103 73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
MatthewandTulio Leao d00c71399b Add guest thoughts to plugin API (#18732)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-12-29 12:56:11 -03:00
Stephan Spengler bd6e572dbc add all game actions and their documentation to plugin API (#18826) 2022-12-16 21:38:45 +00:00
Silent 79660f2fe9 Fix FileWatcher (#18216) 2022-10-23 21:35:00 -03:00
Hielke Morsink f9d1f024c2 Rename public plug-in config data members 2022-10-16 21:46:07 +02:00
73 b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Gymnasiast c1149895fa Close #17955: Make ratings setting networked and freeze them 2022-09-21 19:15:10 +02:00
Hielke Morsink e2da19f0f7 Add missing includes 2022-07-29 18:45:10 +02:00
Ted John 71a6e2bf74 Add angle and banking to track segment 2022-05-17 19:27:39 +01:00
Ted John 4eef86dc50 Implement track iterator 2022-05-17 19:27:39 +01:00
Ted John 76601ef6fc Add API for getting track segments 2022-05-17 19:27:39 +01:00
Hielke Morsink a67e805e60 Log messages with new LogPluginInfo function 2022-05-09 21:17:55 +02:00
germanaizek 0045aed7f9 Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors 2022-05-07 16:05:38 +02:00
Hielke Morsink 5c4675a150 Fix: call to std::set_difference with unordered lists 2022-04-02 23:03:07 +02:00
Ted John 8f30ed910f Start working on custom image APIs 2022-03-24 22:37:21 +00:00
Ted John 9f96b0df33 Separate map.change and map.changed events
Also fix network plugin logic.
2022-03-21 23:09:40 +00:00
Ted John e4a10b8eb4 Fix and improve plugin startup / shutdown 2022-03-21 21:43:02 +00:00
Ted John 3864795a08 Improve safety on event handlers from windows 2022-03-21 21:42:30 +00:00
Ted John 1128f76a97 Improve and fix intransient plugin branch 2022-03-21 21:42:30 +00:00
Ted John dbf83f018c Implement lifetime logic of transient plugins 2022-03-21 21:42:30 +00:00
Ted John 6fea0b5025 Start work on intransient plugins 2022-03-21 21:42:30 +00:00
Ted John dff1d730da Implement #13620: [Plugin] Add support for patrol areas to Staff 2022-03-13 19:30:50 +00:00
Hielke Morsink 6ba0a3bd49 Use u8 strings when dealing with file paths 2022-03-01 22:12:39 +01:00
Ted John 1182ff5f19 Add Plugin API for storing data in .park files 2022-02-24 23:55:23 +00:00
Michael Steenbeek 5edc561715 Close #11437: Migrate old platform methods 2022-02-18 21:57:00 +01:00
Michael Steenbeek 4c046024a3 Merge pull request #16640 from ZehMatt/refactor/entityid-16469
#16469: Introduce EntityId and refactor everything
2022-02-18 21:29:23 +01:00
Ted John 007a33404e Close plugin's windows gracefully when stopped
When a plugin is stopped, close all windows created by that plugin.
Ensure the close event on the window can not open a new window if the plugin is being stopped.
2022-02-17 20:18:30 +00:00
Ted John 105009f3f8 Fix #16591: Plugins: setInterval and setTimeout is not disposed... 2022-02-17 20:18:16 +00:00
ζeh Matt d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
Ted John 83c347218b Allow plugins to call change map size game action 2022-02-14 23:15:59 +00: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
Michael Steenbeek a6042b8903 Merge pull request #16153 from IntelOrca/embed-duktape
Resolve #14259: Embed our own duktape library
2022-01-23 13:45:42 +01:00
Ted John b5d66e099e Embed our own duktape library
Duktape is geared around compile time switches. We can't rely on shared libraries.
2022-01-18 18:29:27 +00:00
ζeh MattandTed John 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
ζeh Matt 94e20ba7fe Rename some Update functions to Tick 2021-12-13 19:04:48 +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
Bas 8682a8677e Fix unable to read litter information in plugin api 2021-10-16 15:38:52 +02:00
ζeh Matt 8effeb26b0 Refactor action result passing for StaffHireNewAction 2021-10-04 17:01:27 +03:00
ζeh Matt 2597c04eb4 Refactor RideCreateAction result data passing 2021-10-02 00:50:03 +03:00
Hielke Morsink 4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
ζeh Matt 516232e0a7 Change static casts to EnumValue 2021-09-10 19:10:15 +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
Hielke Morsink e0751d707f Fix #15298: Crash on map.getAllEntities from in-game console (#15301) 2021-08-28 17:43:11 +02:00
ZehMatt 9f95b006d3 Move ScTileElement into its own files 2021-08-11 22:15:37 +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 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