MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetDefaultAnimationParameters

Function GetDefaultAnimationParameters

src/openrct2/object/RideObject.cpp:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 static LegacyAnimationParameters GetDefaultAnimationParameters(uint8_t legacyAnimationType)
107 {
108 if (legacyAnimationType >= NumLegacyAnimationTypes)
109 return VehicleEntryDefaultAnimation[0];
110 return VehicleEntryDefaultAnimation[legacyAnimationType];
111 }
112
113 static constexpr SpritePrecision PrecisionFromNumFrames(uint32_t numRotationFrames)
114 {

Callers 2

ReadLegacyCarMethod · 0.85
ReadJsonCarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected