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

Method getTunnels

src/OpenLoco/src/Paint/Paint.cpp:1502–1516  ·  view source on GitHub ↗

Note: Size includes for 1 extra at end that should never be anything other than 0xFF, 0xFF or 0, 0

Source from the content-addressed store, hash-verified

1500
1501 // Note: Size includes for 1 extra at end that should never be anything other than 0xFF, 0xFF or 0, 0
1502 std::span<TunnelEntry> PaintSession::getTunnels(uint8_t edge)
1503 {
1504 switch (edge)
1505 {
1506 case 0:
1507 return _tunnels0;
1508 case 1:
1509 return _tunnels1;
1510 case 2:
1511 return _tunnels2;
1512 case 3:
1513 return _tunnels3;
1514 }
1515 return {};
1516 }
1517
1518 bool showAiPlanningGhosts()
1519 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected