2019-10-19 14:22:44 +01:00
|
|
|
|
/*****************************************************************************
|
2024-12-31 20:30:04 +01:00
|
|
|
|
* Copyright (c) 2014-2025 OpenRCT2 developers
|
2019-10-19 14:22:44 +01:00
|
|
|
|
*
|
|
|
|
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
|
|
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
|
|
|
|
|
*
|
|
|
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#include "TrackDesignAction.h"
|
|
|
|
|
|
|
2020-03-20 17:07:31 +00:00
|
|
|
|
#include "../Context.h"
|
2024-07-09 16:23:31 +02:00
|
|
|
|
#include "../Diagnostic.h"
|
2024-03-03 21:44:15 +00:00
|
|
|
|
#include "../GameState.h"
|
2019-10-19 14:22:44 +01:00
|
|
|
|
#include "../management/Finance.h"
|
|
|
|
|
|
#include "../management/Research.h"
|
2020-03-20 17:07:31 +00:00
|
|
|
|
#include "../object/ObjectManager.h"
|
2019-10-19 14:22:44 +01:00
|
|
|
|
#include "../object/ObjectRepository.h"
|
2021-12-18 19:50:29 +01:00
|
|
|
|
#include "../ride/RideConstruction.h"
|
2019-10-19 14:22:44 +01:00
|
|
|
|
#include "../ride/TrackDesign.h"
|
2020-12-09 23:39:10 -07:00
|
|
|
|
#include "RideCreateAction.h"
|
|
|
|
|
|
#include "RideDemolishAction.h"
|
|
|
|
|
|
#include "RideSetNameAction.h"
|
|
|
|
|
|
#include "RideSetSettingAction.h"
|
|
|
|
|
|
#include "RideSetVehicleAction.h"
|
2019-10-19 14:22:44 +01:00
|
|
|
|
|
2024-03-03 21:44:15 +00:00
|
|
|
|
using namespace OpenRCT2;
|
|
|
|
|
|
|
2020-12-12 04:18:38 -03:00
|
|
|
|
TrackDesignAction::TrackDesignAction(const CoordsXYZD& location, const TrackDesign& td)
|
|
|
|
|
|
: _loc(location)
|
|
|
|
|
|
, _td(td)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TrackDesignAction::AcceptParameters(GameActionParameterVisitor& visitor)
|
|
|
|
|
|
{
|
|
|
|
|
|
visitor.Visit(_loc);
|
|
|
|
|
|
// TODO visit the track design (it has a lot of sub fields)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
uint16_t TrackDesignAction::GetActionFlags() const
|
|
|
|
|
|
{
|
|
|
|
|
|
return GameActionBase::GetActionFlags();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TrackDesignAction::Serialise(DataSerialiser& stream)
|
|
|
|
|
|
{
|
|
|
|
|
|
GameAction::Serialise(stream);
|
|
|
|
|
|
|
|
|
|
|
|
stream << DS_TAG(_loc);
|
|
|
|
|
|
_td.Serialise(stream);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
GameActions::Result TrackDesignAction::Query() const
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2021-11-23 23:35:08 -08:00
|
|
|
|
auto res = GameActions::Result();
|
|
|
|
|
|
res.Position.x = _loc.x + 16;
|
|
|
|
|
|
res.Position.y = _loc.y + 16;
|
|
|
|
|
|
res.Position.z = _loc.z;
|
|
|
|
|
|
res.Expenditure = ExpenditureType::RideConstruction;
|
2019-10-19 14:22:44 +01:00
|
|
|
|
|
2020-06-16 20:57:11 +01:00
|
|
|
|
if (!LocationValid(_loc))
|
|
|
|
|
|
{
|
2021-11-23 23:35:08 -08:00
|
|
|
|
return GameActions::Result(
|
2024-01-24 23:27:34 -08:00
|
|
|
|
GameActions::Status::InvalidParameters, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_OFF_EDGE_OF_MAP);
|
2020-06-16 20:57:11 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-03-20 19:47:53 +01:00
|
|
|
|
auto& gameState = getGameState();
|
2024-03-03 21:44:15 +00:00
|
|
|
|
auto& objManager = GetContext()->GetObjectManager();
|
2024-07-03 22:33:24 +02:00
|
|
|
|
auto entryIndex = objManager.GetLoadedObjectEntryIndex(_td.trackAndVehicle.vehicleObject);
|
2025-01-22 17:16:55 +01:00
|
|
|
|
if (entryIndex == kObjectEntryIndexNull)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2024-07-02 19:29:19 +02:00
|
|
|
|
// Force a fallback if the entry is not invented yet a track design of it is selected,
|
2021-09-12 21:25:22 +02:00
|
|
|
|
// which can happen in select-by-track-type mode
|
2025-03-20 19:47:53 +01:00
|
|
|
|
if (!RideEntryIsInvented(entryIndex) && !gameState.cheats.ignoreResearchStatus)
|
2021-09-12 21:25:22 +02:00
|
|
|
|
{
|
2025-01-22 17:16:55 +01:00
|
|
|
|
entryIndex = kObjectEntryIndexNull;
|
2021-09-12 21:25:22 +02:00
|
|
|
|
}
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2019-12-11 20:33:58 +00:00
|
|
|
|
// Colours do not matter as will be overwritten
|
2025-03-20 19:47:53 +01:00
|
|
|
|
auto rideCreateAction = RideCreateAction(_td.trackAndVehicle.rtdIndex, entryIndex, 0, 0, gameState.lastEntranceStyle);
|
2019-12-11 20:33:58 +00:00
|
|
|
|
rideCreateAction.SetFlags(GetFlags());
|
|
|
|
|
|
auto r = GameActions::ExecuteNested(&rideCreateAction);
|
2021-11-23 23:35:08 -08:00
|
|
|
|
if (r.Error != GameActions::Status::Ok)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2025-01-19 16:59:45 +01:00
|
|
|
|
return GameActions::Result(GameActions::Status::NoFreeElements, STR_CANT_CREATE_NEW_RIDE_ATTRACTION, kStringIdNone);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-01-19 15:17:11 +02:00
|
|
|
|
const auto rideIndex = r.GetData<RideId>();
|
2023-01-17 01:32:54 +01:00
|
|
|
|
auto ride = GetRide(rideIndex);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
if (ride == nullptr)
|
|
|
|
|
|
{
|
2024-03-16 22:36:26 -07:00
|
|
|
|
LOG_ERROR("Ride not found for rideIndex %d", rideIndex);
|
2024-03-16 22:45:25 -07:00
|
|
|
|
return GameActions::Result(
|
|
|
|
|
|
GameActions::Status::Unknown, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_ERR_RIDE_NOT_FOUND);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool placeScenery = true;
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
|
|
|
|
|
uint32_t flags = 0;
|
|
|
|
|
|
if (GetFlags() & GAME_COMMAND_FLAG_GHOST)
|
|
|
|
|
|
flags |= GAME_COMMAND_FLAG_GHOST;
|
|
|
|
|
|
if (GetFlags() & GAME_COMMAND_FLAG_REPLAY)
|
|
|
|
|
|
flags |= GAME_COMMAND_FLAG_REPLAY;
|
|
|
|
|
|
|
2024-07-03 22:58:36 +02:00
|
|
|
|
auto queryRes = TrackDesignPlace(_td, flags, placeScenery, *ride, _loc);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
if (_trackDesignPlaceStateSceneryUnavailable)
|
|
|
|
|
|
{
|
|
|
|
|
|
placeScenery = false;
|
2024-07-03 22:58:36 +02:00
|
|
|
|
queryRes = TrackDesignPlace(_td, flags, placeScenery, *ride, _loc);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-03-06 23:24:43 +01:00
|
|
|
|
auto gameAction = RideDemolishAction(ride->id, RideModifyType::demolish);
|
2019-11-02 15:48:23 +00:00
|
|
|
|
gameAction.SetFlags(GetFlags());
|
|
|
|
|
|
|
|
|
|
|
|
GameActions::ExecuteNested(&gameAction);
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
if (queryRes.Error != GameActions::Status::Ok)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2021-11-23 23:35:08 -08:00
|
|
|
|
res.Error = queryRes.Error;
|
|
|
|
|
|
res.ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE;
|
|
|
|
|
|
res.ErrorMessage = queryRes.ErrorMessage;
|
|
|
|
|
|
res.ErrorMessageArgs = queryRes.ErrorMessageArgs;
|
2021-10-29 01:59:08 +03:00
|
|
|
|
return res;
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
res.Cost = queryRes.Cost;
|
2022-01-19 18:24:23 +02:00
|
|
|
|
res.SetData(RideId{ RideId::GetNull() });
|
2021-10-16 22:24:38 +03:00
|
|
|
|
|
2019-10-19 14:22:44 +01:00
|
|
|
|
return res;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
GameActions::Result TrackDesignAction::Execute() const
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2021-11-23 23:35:08 -08:00
|
|
|
|
auto res = GameActions::Result();
|
|
|
|
|
|
res.Position.x = _loc.x + 16;
|
|
|
|
|
|
res.Position.y = _loc.y + 16;
|
|
|
|
|
|
res.Position.z = _loc.z;
|
|
|
|
|
|
res.Expenditure = ExpenditureType::RideConstruction;
|
2019-10-19 14:22:44 +01:00
|
|
|
|
|
2025-03-20 19:47:53 +01:00
|
|
|
|
auto& gameState = getGameState();
|
2024-03-03 21:44:15 +00:00
|
|
|
|
auto& objManager = GetContext()->GetObjectManager();
|
2024-07-03 22:33:24 +02:00
|
|
|
|
auto entryIndex = objManager.GetLoadedObjectEntryIndex(_td.trackAndVehicle.vehicleObject);
|
2025-01-22 17:16:55 +01:00
|
|
|
|
if (entryIndex != kObjectEntryIndexNull)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2022-02-12 12:28:37 +01:00
|
|
|
|
// Force a fallback if the entry is not invented yet a track design using it is selected.
|
2022-02-12 00:43:32 +01:00
|
|
|
|
// This can happen on rides with multiple vehicles where some have been invented and some haven’t.
|
2025-03-20 19:47:53 +01:00
|
|
|
|
if (!RideEntryIsInvented(entryIndex) && !gameState.cheats.ignoreResearchStatus)
|
2021-09-12 21:25:22 +02:00
|
|
|
|
{
|
2025-01-22 17:16:55 +01:00
|
|
|
|
entryIndex = kObjectEntryIndexNull;
|
2021-09-12 21:25:22 +02:00
|
|
|
|
}
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2019-12-11 20:33:58 +00:00
|
|
|
|
// Colours do not matter as will be overwritten
|
2025-03-20 19:47:53 +01:00
|
|
|
|
auto rideCreateAction = RideCreateAction(_td.trackAndVehicle.rtdIndex, entryIndex, 0, 0, gameState.lastEntranceStyle);
|
2019-12-11 20:33:58 +00:00
|
|
|
|
rideCreateAction.SetFlags(GetFlags());
|
|
|
|
|
|
auto r = GameActions::ExecuteNested(&rideCreateAction);
|
2021-11-23 23:35:08 -08:00
|
|
|
|
if (r.Error != GameActions::Status::Ok)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2025-01-19 16:59:45 +01:00
|
|
|
|
return GameActions::Result(GameActions::Status::NoFreeElements, STR_CANT_CREATE_NEW_RIDE_ATTRACTION, kStringIdNone);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-01-19 15:17:11 +02:00
|
|
|
|
const auto rideIndex = r.GetData<RideId>();
|
2023-01-17 01:32:54 +01:00
|
|
|
|
auto ride = GetRide(rideIndex);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
if (ride == nullptr)
|
|
|
|
|
|
{
|
2024-03-16 22:36:26 -07:00
|
|
|
|
LOG_ERROR("Ride not found for rideIndex %d", rideIndex);
|
2024-03-16 22:45:25 -07:00
|
|
|
|
return GameActions::Result(
|
|
|
|
|
|
GameActions::Status::Unknown, STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE, STR_ERR_RIDE_NOT_FOUND);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-10-29 01:59:08 +03:00
|
|
|
|
// Query first, this is required again to determine if scenery is available.
|
2024-08-07 23:36:50 +03:00
|
|
|
|
uint32_t flags = GetFlags() & ~GAME_COMMAND_FLAG_APPLY;
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
2024-08-07 23:36:50 +03:00
|
|
|
|
bool placeScenery = true;
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
2024-07-03 22:58:36 +02:00
|
|
|
|
auto queryRes = TrackDesignPlace(_td, flags, placeScenery, *ride, _loc);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
if (_trackDesignPlaceStateSceneryUnavailable)
|
|
|
|
|
|
{
|
|
|
|
|
|
placeScenery = false;
|
2024-07-03 22:58:36 +02:00
|
|
|
|
queryRes = TrackDesignPlace(_td, flags, placeScenery, *ride, _loc);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
if (queryRes.Error != GameActions::Status::Ok)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2025-03-06 23:24:43 +01:00
|
|
|
|
auto gameAction = RideDemolishAction(ride->id, RideModifyType::demolish);
|
2019-11-02 15:48:23 +00:00
|
|
|
|
gameAction.SetFlags(GetFlags());
|
|
|
|
|
|
GameActions::ExecuteNested(&gameAction);
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
res.Error = queryRes.Error;
|
|
|
|
|
|
res.ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE;
|
|
|
|
|
|
res.ErrorMessage = queryRes.ErrorMessage;
|
|
|
|
|
|
res.ErrorMessageArgs = queryRes.ErrorMessageArgs;
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Execute.
|
|
|
|
|
|
flags |= GAME_COMMAND_FLAG_APPLY;
|
|
|
|
|
|
|
2024-07-03 22:58:36 +02:00
|
|
|
|
auto execRes = TrackDesignPlace(_td, flags, placeScenery, *ride, _loc);
|
2021-11-23 23:35:08 -08:00
|
|
|
|
if (execRes.Error != GameActions::Status::Ok)
|
2021-10-29 01:59:08 +03:00
|
|
|
|
{
|
2025-03-06 23:24:43 +01:00
|
|
|
|
auto gameAction = RideDemolishAction(ride->id, RideModifyType::demolish);
|
2021-10-29 01:59:08 +03:00
|
|
|
|
gameAction.SetFlags(GetFlags());
|
|
|
|
|
|
GameActions::ExecuteNested(&gameAction);
|
|
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
res.Error = execRes.Error;
|
|
|
|
|
|
res.ErrorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE;
|
|
|
|
|
|
res.ErrorMessage = execRes.ErrorMessage;
|
|
|
|
|
|
res.ErrorMessageArgs = execRes.ErrorMessageArgs;
|
2021-10-29 01:59:08 +03:00
|
|
|
|
|
|
|
|
|
|
return res;
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-01-22 17:16:55 +01:00
|
|
|
|
if (entryIndex != kObjectEntryIndexNull)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2023-01-17 01:32:54 +01:00
|
|
|
|
auto colour = RideGetUnusedPresetVehicleColour(entryIndex);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
auto rideSetVehicleAction = RideSetVehicleAction(ride->id, RideSetVehicleType::RideEntry, entryIndex, colour);
|
|
|
|
|
|
GameActions::ExecuteNested(&rideSetVehicleAction);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-07 23:36:50 +03:00
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::Mode, static_cast<uint8_t>(_td.operation.rideMode), flags);
|
2024-07-04 00:16:50 +02:00
|
|
|
|
auto rideSetVehicleAction2 = RideSetVehicleAction(
|
|
|
|
|
|
ride->id, RideSetVehicleType::NumTrains, _td.trackAndVehicle.numberOfTrains);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
GameActions::ExecuteNested(&rideSetVehicleAction2);
|
|
|
|
|
|
|
2024-07-04 00:16:50 +02:00
|
|
|
|
auto rideSetVehicleAction3 = RideSetVehicleAction(
|
|
|
|
|
|
ride->id, RideSetVehicleType::NumCarsPerTrain, _td.trackAndVehicle.numberOfCarsPerTrain);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
GameActions::ExecuteNested(&rideSetVehicleAction3);
|
|
|
|
|
|
|
2024-08-07 23:36:50 +03:00
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::Departure, _td.operation.departFlags, flags);
|
|
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::MinWaitingTime, _td.operation.minWaitingTime, flags);
|
|
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::MaxWaitingTime, _td.operation.maxWaitingTime, flags);
|
|
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::Operation, _td.operation.operationSetting, flags);
|
|
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::LiftHillSpeed, _td.operation.liftHillSpeed, flags);
|
2019-10-19 14:22:44 +01:00
|
|
|
|
|
2024-07-02 19:02:34 +02:00
|
|
|
|
auto numCircuits = std::max<uint8_t>(1, _td.operation.numCircuits);
|
2024-08-07 23:36:50 +03:00
|
|
|
|
SetOperatingSettingNested(ride->id, RideSetSetting::NumCircuits, numCircuits, flags);
|
2025-03-09 00:26:25 +01:00
|
|
|
|
ride->setToDefaultInspectionInterval();
|
|
|
|
|
|
ride->lifecycleFlags |= RIDE_LIFECYCLE_NOT_CUSTOM_DESIGN;
|
2024-07-02 18:50:12 +02:00
|
|
|
|
ride->vehicleColourSettings = _td.appearance.vehicleColourSettings;
|
2019-10-19 14:22:44 +01:00
|
|
|
|
|
2025-03-09 00:26:25 +01:00
|
|
|
|
ride->entranceStyle = objManager.GetLoadedObjectEntryIndex(_td.appearance.stationObjectIdentifier);
|
|
|
|
|
|
if (ride->entranceStyle == kObjectEntryIndexNull)
|
2021-10-27 14:21:14 +02:00
|
|
|
|
{
|
2025-03-20 19:47:53 +01:00
|
|
|
|
ride->entranceStyle = gameState.lastEntranceStyle;
|
2021-10-27 14:21:14 +02:00
|
|
|
|
}
|
2019-10-19 14:22:44 +01:00
|
|
|
|
|
2025-03-09 00:26:25 +01:00
|
|
|
|
for (size_t i = 0; i < std::min(std::size(ride->trackColours), std::size(_td.appearance.trackColours)); i++)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2025-03-09 00:26:25 +01:00
|
|
|
|
ride->trackColours[i] = _td.appearance.trackColours[i];
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-27 07:32:12 +00:00
|
|
|
|
for (size_t i = 0; i < Limits::kMaxVehicleColours; i++)
|
2019-10-19 14:22:44 +01:00
|
|
|
|
{
|
2025-03-09 00:26:25 +01:00
|
|
|
|
ride->vehicleColours[i] = _td.appearance.vehicleColours[i];
|
2019-10-19 14:22:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-11-23 23:35:08 -08:00
|
|
|
|
for (int32_t count = 1; count == 1 || r.Error != GameActions::Status::Ok; ++count)
|
2020-10-07 12:45:19 -03:00
|
|
|
|
{
|
2024-07-03 22:18:48 +02:00
|
|
|
|
auto name = count == 1 ? _td.gameStateData.name : (_td.gameStateData.name + " " + std::to_string(count));
|
2020-10-07 12:45:19 -03:00
|
|
|
|
auto gameAction = RideSetNameAction(ride->id, name);
|
|
|
|
|
|
gameAction.SetFlags(GetFlags());
|
|
|
|
|
|
r = GameActions::ExecuteNested(&gameAction);
|
|
|
|
|
|
}
|
2021-11-23 23:35:08 -08:00
|
|
|
|
res.Cost = execRes.Cost;
|
2022-01-19 15:17:11 +02:00
|
|
|
|
res.SetData(RideId{ ride->id });
|
2021-10-16 22:24:38 +03:00
|
|
|
|
|
2019-10-19 14:22:44 +01:00
|
|
|
|
return res;
|
|
|
|
|
|
}
|