1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 18:25:16 +01:00

Move Pause, PeepSpawn, Player, TileModify game actions to GameActions namespace

This commit is contained in:
Aaron van Geffen
2025-08-26 21:39:29 +02:00
parent 86a001875e
commit 439afd9d5d
17 changed files with 574 additions and 544 deletions

View File

@@ -239,7 +239,7 @@ namespace OpenRCT2::Scripting
if (index < numPlayers)
{
auto playerId = NetworkGetPlayerID(index);
auto kickPlayerAction = PlayerKickAction(playerId);
auto kickPlayerAction = GameActions::PlayerKickAction(playerId);
GameActions::Execute(&kickPlayerAction);
}
}
@@ -248,7 +248,7 @@ namespace OpenRCT2::Scripting
auto index = NetworkGetPlayerIndex(id);
if (index != -1)
{
auto kickPlayerAction = PlayerKickAction(id);
auto kickPlayerAction = GameActions::PlayerKickAction(id);
GameActions::Execute(&kickPlayerAction);
}
}