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

Method getAnimationSequence

src/OpenLoco/src/Objects/IndustryObject.cpp:398–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

updateIndustryAnimation2Function · 0.80
paintIndustryBuildingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected