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

Method addToPlotListTrackRoadAddition

src/OpenLoco/src/Paint/Paint.cpp:370–384  ·  view source on GitHub ↗

0x004FD180

Source from the content-addressed store, hash-verified

368
369 // 0x004FD180
370 PaintStruct* PaintSession::addToPlotListTrackRoadAddition(ImageId imageId, uint32_t priority, const World::Pos3& offset, const World::Pos3& boundBoxOffset, const World::Pos3& boundBoxSize)
371 {
372 _lastPS = nullptr;
373
374 auto* ps = createNormalPaintStruct(imageId, offset, boundBoxOffset, boundBoxSize);
375 if (ps != nullptr)
376 {
377 _lastPS = ps;
378 auto* lastTRS = _trackRoadAdditionsPaintStructs[priority];
379 _trackRoadAdditionsPaintStructs[priority] = ps;
380 ps->children = lastTRS;
381 }
382
383 return ps;
384 }
385
386 // 0x0045E779
387 AttachedPaintStruct* PaintSession::attachToPrevious(ImageId imageId, const Ui::Point& offset)

Calls

no outgoing calls

Tested by

no test coverage detected