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

Function paintRoadStreetlights

src/OpenLoco/src/Paint/PaintRoad.cpp:223–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 static void paintRoadStreetlights(PaintSession& session, const World::RoadElement& elRoad, const std::array<int16_t, 4>& streetlightHeights)
224 {
225 auto r = 0;
226
227 const auto style = elRoad.streetLightStyle() - 1;
228 for (auto& height : streetlightHeights)
229 {
230 if (height != kNoStreetlight)
231 {
232 paintRoadStreetlight(session, elRoad.baseHeight(), style, height, r);
233 }
234 r++;
235 }
236 }
237
238 namespace AdditionStyle1
239 {

Callers 1

paintRoadPPStandardFunction · 0.85

Calls 3

paintRoadStreetlightFunction · 0.85
streetLightStyleMethod · 0.80
baseHeightMethod · 0.80

Tested by

no test coverage detected