metaforce/DataSpec/DNAMP1/ScriptObjects/CameraHint.hpp

74 lines
2.2 KiB
C++
Raw Normal View History

2015-09-10 20:30:35 +00:00
#ifndef _DNAMP1_CAMERAHINT_HPP_
#define _DNAMP1_CAMERAHINT_HPP_
#include "../../DNACommon/DNACommon.hpp"
#include "IScriptObject.hpp"
#include "Parameters.hpp"
2016-02-13 09:02:47 +00:00
namespace DataSpec
2015-09-10 20:30:35 +00:00
{
namespace DNAMP1
{
struct CameraHint : IScriptObject
{
DECL_YAML
String<-1> name;
Value<atVec3f> location;
Value<atVec3f> orientation;
2017-10-16 05:26:50 +00:00
Value<bool> active;
Value<atUint32> priority;
Value<atUint32> behaviour;
2015-09-10 20:30:35 +00:00
struct CameraHintParameters : BigYAML
{
DECL_YAML
Value<atUint32> propertyCount;
2017-10-17 05:51:53 +00:00
Value<bool> calculateCamPos; // 0x1
2017-10-16 05:26:50 +00:00
Value<bool> chaseAllowed; // 0x2
Value<bool> boostAllowed; // 0x4
Value<bool> obscureAvoidance; // 0x8
Value<bool> volumeCollider; // 0x10
Value<bool> applyImmediately; // 0x20
Value<bool> lookAtBall; // 0x40
Value<bool> hintDistanceSelection; // 0x80
Value<bool> hintDistanceSelfPos; // 0x100
Value<bool> controlInterpolation; // 0x200
Value<bool> unknown11; // 0x400
Value<bool> unknown12; // 0x800
Value<bool> clampVelocity; // 0x1000
Value<bool> skipCinematic; // 0x2000
Value<bool> noElevationInterp; // 0x4000
Value<bool> directElevation; // 0x8000
Value<bool> overrideLookDir; // 0x10000
Value<bool> noElevationVelClamp; // 0x20000
Value<bool> calculateTransformFromPrevCam; // 0x40000
Value<bool> noSpline; // 0x80000
Value<bool> unknown21; // 0x100000
Value<bool> unknown22; // 0x200000
2015-09-10 20:30:35 +00:00
} cameraHintParameters;
struct BoolFloat : BigYAML
{
DECL_YAML
2017-10-16 05:26:50 +00:00
Value<bool> active;
Value<float> value;
} minDist, maxDist, backwardsDist; // 0x400000, 0x800000, 0x1000000
2015-09-10 20:30:35 +00:00
struct BoolVec3f : BigYAML
{
DECL_YAML
2017-10-16 05:26:50 +00:00
Value<bool> active;
Value<atVec3f> value;
} lookAtOffset, chaseLookAtOffset; // 0x2000000, 0x4000000
Value<atVec3f> ballToCam;
BoolFloat fov, attitudeRange, azimuthRange, anglePerSecond; // 0x8000000, 0x10000000, 0x20000000, 0x40000000
Value<float> clampVelRange;
2015-09-10 20:30:35 +00:00
Value<float> unknown6;
2017-10-16 05:26:50 +00:00
BoolFloat elevation; // 0x80000000
2015-09-10 20:30:35 +00:00
Value<float> unknown7;
2017-10-16 05:26:50 +00:00
Value<float> clampVelTime;
Value<float> controlInterpDur;
2015-09-10 20:30:35 +00:00
};
}
}
#endif