| 271 | } |
| 272 | |
| 273 | std::string_view GetRideEntryName(ObjectEntryIndex index) |
| 274 | { |
| 275 | if (index >= getObjectEntryGroupCount(ObjectType::ride)) |
| 276 | { |
| 277 | LOG_ERROR("invalid index %d for ride type", index); |
| 278 | return {}; |
| 279 | } |
| 280 | |
| 281 | auto objectEntry = ObjectEntryGetObject(ObjectType::ride, index); |
| 282 | if (objectEntry != nullptr) |
| 283 | { |
| 284 | return objectEntry->GetLegacyIdentifier(); |
| 285 | } |
| 286 | return {}; |
| 287 | } |
| 288 | |
| 289 | const RideObjectEntry* Ride::getRideEntry() const |
| 290 | { |
no test coverage detected