1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Allow plugins to call change map size game action

This commit is contained in:
Ted John
2022-02-03 22:31:18 +00:00
parent 3d2420c86c
commit 83c347218b
3 changed files with 3 additions and 1 deletions

View File

@@ -396,6 +396,7 @@ declare global {
"bannersetcolour" |
"bannersetname" |
"bannersetstyle" |
"changemapsize" |
"clearscenery" |
"climateset" |
"footpathplace" |

View File

@@ -1008,6 +1008,7 @@ const static EnumMap<GameCommand> ActionNameToType = {
{ "bannersetcolour", GameCommand::SetBannerColour },
{ "bannersetname", GameCommand::SetBannerName },
{ "bannersetstyle", GameCommand::SetBannerStyle },
{ "changemapsize", GameCommand::ChangeMapSize },
{ "clearscenery", GameCommand::ClearScenery },
{ "climateset", GameCommand::SetClimate },
{ "footpathplace", GameCommand::PlacePath },

View File

@@ -46,7 +46,7 @@ namespace OpenRCT2
namespace OpenRCT2::Scripting
{
static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 43;
static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 44;
// Versions marking breaking changes.
static constexpr int32_t API_VERSION_33_PEEP_DEPRECATION = 33;