| 396 | } |
| 397 | |
| 398 | std::span<const std::uint8_t> IndustryObject::getAnimationSequence(const uint8_t unk) const |
| 399 | { |
| 400 | // animationSequences comprises of a size then data. Size will always be a power of 2 |
| 401 | const auto* base = reinterpret_cast<const std::uint8_t*>(this); |
| 402 | const auto* sequencePointer = base + animationSequenceOffsets[unk]; |
| 403 | const auto size = *sequencePointer++; |
| 404 | return std::span<const std::uint8_t>(sequencePointer, size); |
| 405 | } |
| 406 | |
| 407 | std::span<const std::uint8_t> IndustryObject::getBuildingPartHeights() const |
| 408 | { |
no outgoing calls
no test coverage detected