MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetRideEntryName

Function GetRideEntryName

src/openrct2/ride/Ride.cpp:273–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273std::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
289const RideObjectEntry* Ride::getRideEntry() const
290{

Callers 2

GetNumTrackDesignsMethod · 0.85
loadDesignsListMethod · 0.85

Calls 3

getObjectEntryGroupCountFunction · 0.85
ObjectEntryGetObjectFunction · 0.85
GetLegacyIdentifierMethod · 0.80

Tested by

no test coverage detected