Make vehicle subposition writable in API (#26971)

* add vehicle subposition setter

* declare vehicle subposition setter

* subposition writable in api

* plugin API version

* fix format

* Add bounds checking

* fix formatting
This commit is contained in:
dumpster000 authored and GitHub committed 2026-08-24 00:35:46 +10:00
1 parent 1557aca820
commit 4872effb80
4 files changed
+25 -3

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ namespace OpenRCT2
namespace OpenRCT2::Scripting
{
// Grepped from CI (.github/workflows/publish-plugin-types.yml); keep the format `kPluginApiVersion = N`.
static constexpr int32_t kPluginApiVersion = 121;
static constexpr int32_t kPluginApiVersion = 122;
// Versions marking breaking changes.
static constexpr int32_t kApiVersionPeepDeprecation = 33;