| 424 | } |
| 425 | |
| 426 | std::span<const IndustryObjectUnk38> OpenLoco::IndustryObject::getUnk38() const |
| 427 | { |
| 428 | const auto* base = reinterpret_cast<const std::uint8_t*>(this); |
| 429 | const auto* unkPointer = reinterpret_cast<const IndustryObjectUnk38*>(base + var_38_Offset); |
| 430 | auto* end = unkPointer; |
| 431 | while (end->var_00 != 0xFF) |
| 432 | { |
| 433 | end++; |
| 434 | } |
| 435 | return std::span<const IndustryObjectUnk38>(unkPointer, end); |
| 436 | } |
| 437 | } |