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

Function getRoadConnectionEnd

src/OpenLoco/src/Map/Track/Track.cpp:16–21  ·  view source on GitHub ↗

Part of 0x00478895 For 0x00478895 call this followed by getRoadConnections

Source from the content-addressed store, hash-verified

14 // Part of 0x00478895
15 // For 0x00478895 call this followed by getRoadConnections
16 ConnectionEnd getRoadConnectionEnd(const World::Pos3& pos, const uint16_t trackAndDirection)
17 {
18 const auto& roadData = TrackData::getUnkRoad(trackAndDirection);
19
20 return ConnectionEnd{ pos + roadData.pos, roadData.rotationEnd };
21 }
22
23 // 0x004788C8
24 template<bool checkOneWay, bool aiAllocated>

Callers 14

growMethod · 0.85
sub_48715CFunction · 0.85
removeRoadFunction · 0.85
sub_47DA8DFunction · 0.85
roadPathingShouldReverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected