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

Function RideGetFirstEmptyStationStart

src/openrct2/ride/Station.cpp:403–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403StationIndex RideGetFirstEmptyStationStart(const Ride& ride)
404{
405 for (const auto& station : ride.getStations())
406 {
407 if (station.Start.IsNull())
408 {
409 return ride.getStationIndex(&station);
410 }
411 }
412 return StationIndex::GetNull();
413}
414
415int32_t RideStation::GetBaseZ() const
416{

Callers 2

TrackAddStationElementFunction · 0.85

Calls 3

getStationsMethod · 0.80
getStationIndexMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected