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

Method getBuildingPartAnimations

src/OpenLoco/src/Objects/DockObject.cpp:104–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 std::span<const BuildingPartAnimation> DockObject::getBuildingPartAnimations() const
105 {
106 const auto* base = reinterpret_cast<const uint8_t*>(this);
107 const auto* ptr = reinterpret_cast<const BuildingPartAnimation*>(base + buildingPartAnimationsOffset);
108 return std::span<const BuildingPartAnimation>(ptr, numBuildingParts);
109 }
110
111 std::span<const uint8_t> DockObject::getBuildingPartHeights() const
112 {

Callers 10

updateMethod · 0.45
updateIndustryAnimation1Function · 0.45
updateIndustryAnimation2Function · 0.45
updateStationAnimationFunction · 0.45
updateBuildingAnimation2Function · 0.45
paintBuildingBuildingFunction · 0.45
paintIndustryBuildingFunction · 0.45
paintAirportBuildingFunction · 0.45
paintDocksBuildingFunction · 0.45
createBuildingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected