| 368 | } |
| 369 | |
| 370 | static TrackDesignAddStatus TrackDesignSaveAddFootpath(const CoordsXY& loc, PathElement* pathElement) |
| 371 | { |
| 372 | auto pathEntry = TrackDesignSaveFootpathGetBestEntry(*pathElement); |
| 373 | if (!pathEntry.has_value()) |
| 374 | { |
| 375 | return TrackDesignAddStatus::Fail(STR_UNSUPPORTED_OBJECT_FORMAT); |
| 376 | } |
| 377 | |
| 378 | auto item = TrackDesignSaveCreateFootpathDesc(pathEntry.value(), loc, *pathElement); |
| 379 | TrackDesignSavePushTileElement(loc, reinterpret_cast<TileElement*>(pathElement)); |
| 380 | |
| 381 | _trackSavedTileElementsDesc.push_back(std::move(item)); |
| 382 | return TrackDesignAddStatus::Success(); |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * |
no test coverage detected