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

Method insertTunnels

src/OpenLoco/src/Paint/Paint.cpp:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 }
462
463 void PaintSession::insertTunnels(const std::array<int16_t, 4>& tunnelHeights, coord_t height, uint8_t tunnelType)
464 {
465 for (auto edge = 0U; edge < tunnelHeights.size(); edge++)
466 {
467 if (tunnelHeights[edge] != -1)
468 {
469 insertTunnel(tunnelHeights[edge] + height, tunnelType, edge);
470 }
471 }
472 }
473
474 struct GenerationParameters
475 {

Callers 3

paintTrackPPMergeableFunction · 0.80
paintTrackPPStandardFunction · 0.80
paintRoadPCPFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected