| 88 | } |
| 89 | |
| 90 | std::span<const std::uint8_t> DockObject::getBuildingParts(const uint8_t buildingType) const |
| 91 | { |
| 92 | const auto offset = buildingVariationPartsOffset[buildingType]; |
| 93 | |
| 94 | const auto* partsPointer = reinterpret_cast<const std::uint8_t*>(this) + offset; |
| 95 | const auto* end = partsPointer; |
| 96 | while (*end != 0xFF) |
| 97 | { |
| 98 | end++; |
| 99 | } |
| 100 | |
| 101 | return std::span<const std::uint8_t>(partsPointer, end); |
| 102 | } |
| 103 | |
| 104 | std::span<const BuildingPartAnimation> DockObject::getBuildingPartAnimations() const |
| 105 | { |
no outgoing calls
no test coverage detected