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

Method addToPlotListTrackRoad

src/OpenLoco/src/Paint/Paint.cpp:353–367  ·  view source on GitHub ↗

0x004FD170

Source from the content-addressed store, hash-verified

351
352 // 0x004FD170
353 PaintStruct* PaintSession::addToPlotListTrackRoad(ImageId imageId, uint32_t priority, const World::Pos3& offset, const World::Pos3& boundBoxOffset, const World::Pos3& boundBoxSize)
354 {
355 _lastPS = nullptr;
356
357 auto* ps = createNormalPaintStruct(imageId, offset, boundBoxOffset, boundBoxSize);
358 if (ps != nullptr)
359 {
360 _lastPS = ps;
361 auto* lastTRS = _trackRoadPaintStructs[priority];
362 _trackRoadPaintStructs[priority] = ps;
363 ps->children = lastTRS;
364 }
365
366 return ps;
367 }
368
369 // 0x004FD180
370 PaintStruct* PaintSession::addToPlotListTrackRoadAddition(ImageId imageId, uint32_t priority, const World::Pos3& offset, const World::Pos3& boundBoxOffset, const World::Pos3& boundBoxSize)

Callers 6

paintTrackPPMergeableFunction · 0.80
paintRoadPPStandardFunction · 0.80
paintRoadPPFunction · 0.80
finalisePaintRoadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected