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

Method getBuildingParts

src/OpenLoco/src/Objects/DockObject.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 15

sub_42CEBFFunction · 0.45
generateNewBuildingArgsFunction · 0.45
updateMethod · 0.45
updateIndustryAnimation1Function · 0.45
updateIndustryAnimation2Function · 0.45
updateStationAnimationFunction · 0.45
updateMethod · 0.45
updateBuildingAnimation2Function · 0.45
paintBuildingBuildingFunction · 0.45
paintIndustryBuildingFunction · 0.45
paintAirportBuildingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected