| 316 | } |
| 317 | |
| 318 | static TrackDesignAddStatus TrackDesignSaveAddWall(const CoordsXY& loc, WallElement* wallElement) |
| 319 | { |
| 320 | auto entryIndex = wallElement->GetEntryIndex(); |
| 321 | auto obj = ObjectEntryGetObject(ObjectType::walls, entryIndex); |
| 322 | if (obj != nullptr && TrackDesignSaveIsSupportedObject(obj)) |
| 323 | { |
| 324 | auto item = TrackDesignSaveCreateWallDesc(*obj, loc, *wallElement); |
| 325 | TrackDesignSavePushTileElement(loc, reinterpret_cast<TileElement*>(wallElement)); |
| 326 | _trackSavedTileElementsDesc.push_back(std::move(item)); |
| 327 | return TrackDesignAddStatus::Success(); |
| 328 | } |
| 329 | |
| 330 | return TrackDesignAddStatus::Fail(STR_UNSUPPORTED_OBJECT_FORMAT); |
| 331 | } |
| 332 | |
| 333 | static std::optional<RCTObjectEntry> TrackDesignSaveFootpathGetBestEntry(const PathElement& pathElement) |
| 334 | { |
no test coverage detected