MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getTrackPiece

Function getTrackPiece

src/OpenLoco/src/Map/Track/TrackData.cpp:321–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 } };
320
321 const std::span<const PreviewTrack> getTrackPiece(size_t trackId)
322 {
323 assert(trackId < trackPieces.size());
324 return trackPieces[trackId];
325 }
326
327 const std::span<const PreviewTrack> getRoadPiece(size_t trackId)
328 {

Callers 15

forEachStationElementFunction · 0.85
isStationTrackConnectedFunction · 0.85
validateTrackPlacementFunction · 0.85
pathFindTrackUndoSectionFunction · 0.85
sub_4A80E1Function · 0.85
connectsToExistingTrackFunction · 0.85
sub_485B75Function · 0.85
queryTrackForRemovalFunction · 0.85
sub_48715CFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected