metaforce/DataSpec/DNAMP1/Tweaks/CTweakAutoMapper.hpp

142 lines
7.3 KiB
C++
Raw Normal View History

2017-01-26 10:06:18 +00:00
#ifndef __DNAMP1_CTWEAKAUTOMAPPER_HPP__
#define __DNAMP1_CTWEAKAUTOMAPPER_HPP__
#include "../../DataSpec/DNACommon/Tweaks/ITweakAutoMapper.hpp"
#include "zeus/CVector3f.hpp"
2017-12-29 08:08:12 +00:00
namespace DataSpec::DNAMP1
2017-01-26 10:06:18 +00:00
{
struct CTweakAutoMapper final : public ITweakAutoMapper
2017-01-26 10:06:18 +00:00
{
DECL_YAML
2017-04-16 05:52:43 +00:00
Value<bool> x4_24_showOneMiniMapArea : 1;
2017-01-26 10:06:18 +00:00
Value<bool> x4_25_ : 1;
2017-04-15 05:32:25 +00:00
Value<bool> x4_26_scaleMoveSpeedWithCamDist : 1;
Value<float> x8_camDist;
Value<float> xc_minCamDist;
Value<float> x10_maxCamDist;
Value<float> x14_minCamRotateX;
Value<float> x18_maxCamRotateX;
Value<float> x1c_camAngle;
2017-01-26 10:06:18 +00:00
Value<float> x20_;
2017-05-21 16:01:04 +00:00
DNAColor x24_automapperWidgetColor;
2017-04-15 05:32:25 +00:00
Value<float> x28_miniCamDist;
Value<float> x2c_miniCamXAngle;
Value<float> x30_miniCamAngle;
2017-01-26 10:06:18 +00:00
Value<float> x34_;
2017-05-21 16:01:04 +00:00
DNAColor x38_automapperWidgetMiniColor;
2017-04-22 21:46:18 +00:00
DNAColor x3c_surfColorVisited;
DNAColor x40_outlineColorVisited;
DNAColor x44_surfColorUnvisited;
DNAColor x48_outlineColorUnvisited;
DNAColor x4c_surfaceSelectColorVisited;
DNAColor x50_outlineSelectColorVisited;
Value<float> x54_mapSurfaceNormColorLinear;
Value<float> x58_mapSurfaceNormColorConstant;
2017-01-26 10:06:18 +00:00
Value<float> x5c_;
float x60_ = 0.4f;
2017-04-15 05:32:25 +00:00
Value<float> x64_openMapScreenTime;
Value<float> x68_closeMapScreenTime;
2017-04-16 05:52:43 +00:00
Value<float> x6c_hintPanTime;
2017-04-15 05:32:25 +00:00
Value<float> x70_zoomUnitsPerFrame;
Value<float> x74_rotateDegPerFrame;
Value<float> x78_baseMapScreenCameraMoveSpeed;
2017-04-22 21:46:18 +00:00
DNAColor x7c_surfaceSelectColorUnvisited;
DNAColor x80_outlineSelectColorUnvisited;
2017-04-15 05:32:25 +00:00
Value<float> x84_miniAlphaSurfaceVisited;
Value<float> x88_alphaSurfaceVisited;
Value<float> x8c_miniAlphaOutlineVisited;
Value<float> x90_alphaOutlineVisited;
Value<float> x94_miniAlphaSurfaceUnvisited;
Value<float> x98_alphaSurfaceUnvisited;
Value<float> x9c_miniAlphaOutlineUnvisited;
Value<float> xa0_alphaOutlineUnvisited;
2017-01-26 10:06:18 +00:00
/* Originally 4 separate floats */
Value<zeus::CVector3f> xa4_doorCenter;
Value<float> xb0_;
Value<float> xb4_;
2017-03-20 05:09:53 +00:00
Value<float> xb8_miniMapViewportWidth;
Value<float> xbc_miniMapViewportHeight;
2017-04-16 05:52:43 +00:00
Value<float> xc0_miniMapCamDistScale;
2017-04-16 20:56:34 +00:00
Value<float> xc4_mapPlaneScaleX;
Value<float> xc8_mapPlaneScaleZ;
2017-01-26 10:06:18 +00:00
Value<bool> xcc_;
2017-04-15 05:32:25 +00:00
Value<float> xd0_universeCamDist;
Value<float> xd4_minUniverseCamDist;
Value<float> xd8_maxUniverseCamDist;
Value<float> xdc_switchToFromUniverseTime;
Value<float> xe0_camPanUnitsPerFrame;
2017-05-21 16:01:04 +00:00
Value<float> xe4_automapperScaleX;
Value<float> xe8_automapperScaleZ;
2017-02-12 03:17:18 +00:00
Value<float> xec_camVerticalOffset;
DNAColor xf0_miniMapSamusModColor;
2017-04-22 21:46:18 +00:00
DNAColor xf4_areaFlashPulseColor;
2017-01-26 10:06:18 +00:00
DNAColor xf8_;
DNAColor xfc_;
Value<atUint32> x100_doorColorCount;
Vector<DNAColor, DNA_COUNT(x100_doorColorCount)> x104_doorColors;
DNAColor x118_doorBorderColor;
DNAColor x11c_openDoorColor;
CTweakAutoMapper() = default;
CTweakAutoMapper(athena::io::IStreamReader& r) { this->read(r); }
2017-04-16 05:52:43 +00:00
bool GetShowOneMiniMapArea() const { return x4_24_showOneMiniMapArea; }
2017-04-15 05:32:25 +00:00
bool GetScaleMoveSpeedWithCamDist() const { return x4_26_scaleMoveSpeedWithCamDist; }
float GetCamDist() const { return x8_camDist; }
float GetMinCamDist() const { return xc_minCamDist; }
float GetMaxCamDist() const { return x10_maxCamDist; }
float GetMinCamRotateX() const { return x14_minCamRotateX; }
float GetMaxCamRotateX() const { return x18_maxCamRotateX; }
float GetCamAngle() const { return x1c_camAngle; }
2017-05-21 16:01:04 +00:00
const zeus::CColor& GetAutomapperWidgetColor() const { return x24_automapperWidgetColor; }
2017-04-15 05:32:25 +00:00
float GetMiniCamDist() const { return x28_miniCamDist; }
float GetMiniCamXAngle() const { return x2c_miniCamXAngle; }
float GetMiniCamAngle() const { return x30_miniCamAngle; }
2017-05-21 16:01:04 +00:00
const zeus::CColor& GetAutomapperWidgetMiniColor() const { return x38_automapperWidgetMiniColor; }
2017-04-22 21:46:18 +00:00
const zeus::CColor& GetSurfaceVisitedColor() const { return x3c_surfColorVisited; }
const zeus::CColor& GetOutlineVisitedColor() const { return x40_outlineColorVisited; }
const zeus::CColor& GetSurfaceUnvisitedColor() const { return x44_surfColorUnvisited; }
const zeus::CColor& GetOutlineUnvisitedColor() const { return x48_outlineColorUnvisited; }
const zeus::CColor& GetSurfaceSelectVisitedColor() const { return x4c_surfaceSelectColorVisited; }
const zeus::CColor& GetOutlineSelectVisitedColor() const { return x50_outlineSelectColorVisited; }
float GetMapSurfaceNormColorLinear() const { return x54_mapSurfaceNormColorLinear; }
float GetMapSurfaceNormColorConstant() const { return x58_mapSurfaceNormColorConstant; }
2017-04-15 05:32:25 +00:00
float GetOpenMapScreenTime() const { return x64_openMapScreenTime; }
float GetCloseMapScreenTime() const { return x68_closeMapScreenTime; }
2017-04-16 05:52:43 +00:00
float GetHintPanTime() const { return x6c_hintPanTime; }
2017-04-15 05:32:25 +00:00
float GetCamZoomUnitsPerFrame() const { return x70_zoomUnitsPerFrame; }
float GetCamRotateDegreesPerFrame() const { return x74_rotateDegPerFrame; }
float GetBaseMapScreenCameraMoveSpeed() const { return x78_baseMapScreenCameraMoveSpeed; }
2017-04-22 21:46:18 +00:00
const zeus::CColor& GetSurfaceSelectUnvisitedColor() const { return x7c_surfaceSelectColorUnvisited; }
const zeus::CColor& GetOutlineSelectUnvisitedColor() const { return x80_outlineSelectColorUnvisited; }
2017-04-15 05:32:25 +00:00
float GetMiniAlphaSurfaceVisited() const { return x84_miniAlphaSurfaceVisited; }
float GetAlphaSurfaceVisited() const { return x88_alphaSurfaceVisited; }
float GetMiniAlphaOutlineVisited() const { return x8c_miniAlphaOutlineVisited; }
float GetAlphaOutlineVisited() const { return x90_alphaOutlineVisited; }
float GetMiniAlphaSurfaceUnvisited() const { return x94_miniAlphaSurfaceUnvisited; }
float GetAlphaSurfaceUnvisited() const { return x98_alphaSurfaceUnvisited; }
float GetMiniAlphaOutlineUnvisited() const { return x9c_miniAlphaOutlineUnvisited; }
float GetAlphaOutlineUnvisited() const { return xa0_alphaOutlineUnvisited; }
2017-01-26 10:06:18 +00:00
const zeus::CVector3f& GetDoorCenter() const { return xa4_doorCenter; }
2017-03-20 05:09:53 +00:00
float GetMiniMapViewportWidth() const { return xb8_miniMapViewportWidth; }
float GetMiniMapViewportHeight() const { return xbc_miniMapViewportHeight; }
2017-04-16 05:52:43 +00:00
float GetMiniMapCamDistScale() const { return xc0_miniMapCamDistScale; }
2017-04-16 20:56:34 +00:00
float GetMapPlaneScaleX() const { return xc4_mapPlaneScaleX; }
float GetMapPlaneScaleZ() const { return xc8_mapPlaneScaleZ; }
2017-04-15 05:32:25 +00:00
float GetUniverseCamDist() const { return xd0_universeCamDist; }
float GetMinUniverseCamDist() const { return xd4_minUniverseCamDist; }
float GetMaxUniverseCamDist() const { return xd8_maxUniverseCamDist; }
float GetSwitchToFromUniverseTime() const { return xdc_switchToFromUniverseTime; }
float GetCamPanUnitsPerFrame() const { return xe0_camPanUnitsPerFrame; }
2017-05-21 16:01:04 +00:00
float GetAutomapperScaleX() const { return xe4_automapperScaleX; }
float GetAutomapperScaleZ() const { return xe8_automapperScaleZ; }
2017-04-15 05:32:25 +00:00
float GetCamVerticalOffset() const { return xec_camVerticalOffset; }
const zeus::CColor& GetMiniMapSamusModColor() const { return xf0_miniMapSamusModColor; }
2017-04-22 21:46:18 +00:00
const zeus::CColor& GetAreaFlashPulseColor() const { return xf4_areaFlashPulseColor; }
2017-04-22 06:42:32 +00:00
const zeus::CColor& GetDoorColor(int idx) const { return x104_doorColors[idx]; }
const zeus::CColor& GetOpenDoorColor() const { return x11c_openDoorColor; }
2017-01-26 10:06:18 +00:00
};
}
#endif // __DNAMP1_CTWEAKAUTOMAPPER_HPP__