| 68 | namespace Style1 |
| 69 | { |
| 70 | static void paintSupport(PaintSession& session, const TrackAdditionSupport& tppaSupport, const uint8_t rotation, const ImageId baseImageId, int16_t height) |
| 71 | { |
| 72 | const auto seg = Numerics::bitScanForward(enumValue(tppaSupport.segments[rotation])); |
| 73 | assert(seg != -1); |
| 74 | TrackRoadAdditionSupports support{}; |
| 75 | support.height = height + tppaSupport.height; |
| 76 | support.occupiedSegments = session.getOccupiedAdditionSupportSegments(); |
| 77 | support.segmentFrequency[seg] = tppaSupport.frequencies[rotation]; |
| 78 | support.segmentImages[seg] = baseImageId.withIndexOffset(tppaSupport.imageIds[rotation][0]).toUInt32(); |
| 79 | support.segmentInteractionItem[seg] = session.getCurrentItem(); |
| 80 | support.segmentInteractionType[seg] = session.getItemType(); |
| 81 | session.setAdditionSupport(support); |
| 82 | } |
| 83 | |
| 84 | static void paintTrackAdditionPPMergeable(PaintSession& session, const World::TrackElement& elTrack, const uint8_t rotation, const ImageId baseImageId, const TrackPaintAdditionPiece& tppa) |
| 85 | { |
no test coverage detected