1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Move ClearAction, GameAction, ScenarioSetSettingAction into GameActions (#25045)

This commit is contained in:
Aaron van Geffen
2025-08-29 11:32:05 +02:00
committed by GitHub
parent ffc7eaf97e
commit abe58f6439
110 changed files with 1216 additions and 1188 deletions

View File

@@ -215,7 +215,7 @@ namespace OpenRCT2::Ui::Windows
// Valid location found. Place the ghost at the location.
auto tdAction = GameActions::TrackDesignAction(trackLoc, *_trackDesign);
tdAction.SetFlags(GAME_COMMAND_FLAG_NO_SPEND | GAME_COMMAND_FLAG_GHOST);
tdAction.SetCallback([&](const GameAction*, const GameActions::Result* result) {
tdAction.SetCallback([&](const GameActions::GameAction*, const GameActions::Result* result) {
if (result->Error == GameActions::Status::Ok)
{
_placementGhostRideId = result->GetData<RideId>();
@@ -283,7 +283,7 @@ namespace OpenRCT2::Ui::Windows
}
auto tdAction = GameActions::TrackDesignAction({ trackLoc, _currentTrackPieceDirection }, *_trackDesign);
tdAction.SetCallback([&](const GameAction*, const GameActions::Result* result) {
tdAction.SetCallback([&](const GameActions::GameAction*, const GameActions::Result* result) {
if (result->Error != GameActions::Status::Ok)
{
Audio::Play3D(Audio::SoundId::Error, result->Position);