CAutoMapper: Make SAutoMapperRenderState constructor parameter names more informative

This commit is contained in:
Lioncash 2020-01-28 13:26:48 -05:00
parent 7b89a165bf
commit 50fbd2ad42
1 changed files with 18 additions and 15 deletions

View File

@ -31,7 +31,8 @@ public:
enum class EAutoMapperState { MiniMap, MapScreen, MapScreenUniverse }; enum class EAutoMapperState { MiniMap, MapScreen, MapScreenUniverse };
struct SAutoMapperRenderState { struct SAutoMapperRenderState {
enum class Ease { None, Linear, Out, In, InOut }; enum class Ease { None, Linear, Out, In, InOut };
typedef zeus::CVector2i (*FGetViewportSize)(); using FGetViewportSize = zeus::CVector2i (*)();
FGetViewportSize m_getViewportSize; FGetViewportSize m_getViewportSize;
zeus::CVector2i x0_viewportSize; zeus::CVector2i x0_viewportSize;
zeus::CQuaternion x8_camOrientation; zeus::CQuaternion x8_camOrientation;
@ -51,20 +52,22 @@ public:
Ease x54_depth2Ease; Ease x54_depth2Ease;
Ease x58_alphaEase; Ease x58_alphaEase;
SAutoMapperRenderState() = default; SAutoMapperRenderState() = default;
SAutoMapperRenderState(FGetViewportSize v1, const zeus::CQuaternion& rot, float f1, float f2, SAutoMapperRenderState(FGetViewportSize getViewportSize, const zeus::CQuaternion& camOrientation, float camDist,
const zeus::CVector3f& v2, float f3, float f4, float f5, float f6, float f7, float f8) float camAngle, const zeus::CVector3f& areaPoint, float drawDepth1, float drawDepth2,
: m_getViewportSize(v1) float alphaSurfaceVisited, float alphaOutlineVisited, float alphaSurfaceUnvisited,
, x0_viewportSize(v1()) float alphaOutlineUnvisited)
, x8_camOrientation(rot) : m_getViewportSize(getViewportSize)
, x18_camDist(f1) , x0_viewportSize(getViewportSize())
, x1c_camAngle(f2) , x8_camOrientation(camOrientation)
, x20_areaPoint(v2) , x18_camDist(camDist)
, x2c_drawDepth1(f3) , x1c_camAngle(camAngle)
, x30_drawDepth2(f4) , x20_areaPoint(areaPoint)
, x34_alphaSurfaceVisited(f5) , x2c_drawDepth1(drawDepth1)
, x38_alphaOutlineVisited(f6) , x30_drawDepth2(drawDepth2)
, x3c_alphaSurfaceUnvisited(f7) , x34_alphaSurfaceVisited(alphaSurfaceVisited)
, x40_alphaOutlineUnvisited(f8) , x38_alphaOutlineVisited(alphaOutlineVisited)
, x3c_alphaSurfaceUnvisited(alphaSurfaceUnvisited)
, x40_alphaOutlineUnvisited(alphaOutlineUnvisited)
, x44_viewportEase(Ease::None) , x44_viewportEase(Ease::None)
, x48_camEase(Ease::None) , x48_camEase(Ease::None)
, x4c_pointEase(Ease::None) , x4c_pointEase(Ease::None)