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

Function RideGetFirstValidStationStart

src/openrct2/ride/Station.cpp:391–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391StationIndex RideGetFirstValidStationStart(const Ride& ride)
392{
393 for (const auto& station : ride.getStations())
394 {
395 if (!station.Start.IsNull())
396 {
397 return ride.getStationIndex(&station);
398 }
399 }
400 return StationIndex::GetNull();
401}
402
403StationIndex RideGetFirstEmptyStationStart(const Ride& ride)
404{

Callers 3

removePeepsMethod · 0.85

Calls 3

getStationsMethod · 0.80
getStationIndexMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected