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

Method getUnk38

src/OpenLoco/src/Objects/IndustryObject.cpp:426–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected