metaforce/DataSpec/DNAMP1/ScriptObjects/NewCameraShaker.hpp

38 lines
833 B
C++

#pragma once
#include "../../DNACommon/DNACommon.hpp"
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec::DNAMP1
{
struct NewCameraShaker : IScriptObject
{
AT_DECL_DNA_YAML
AT_DECL_DNAV
String<-1> name;
Value<atVec3f> location;
Value<bool> active;
PlayerParameters flags;
Value<float> duration;
Value<float> sfxDist;
struct CameraShakerComponent : BigDNA
{
AT_DECL_DNA
PlayerParameters flags;
struct CameraShakePoint : BigDNA
{
AT_DECL_DNA
PlayerParameters flags;
Value<float> attackTime;
Value<float> sustainTime;
Value<float> duration;
Value<float> magnitude;
};
CameraShakePoint am;
CameraShakePoint fm;
} shakerComponents[3];
};
}