metaforce/DataSpec/DNAMP1/ScriptObjects/NewCameraShaker.hpp

42 lines
888 B
C++
Raw Normal View History

2015-09-10 20:30:35 +00:00
#ifndef _DNAMP1_NEWCAMERASHAKER_HPP_
#define _DNAMP1_NEWCAMERASHAKER_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 NewCameraShaker : IScriptObject
{
DECL_YAML
String<-1> name;
Value<atVec3f> location;
2017-03-20 05:09:53 +00:00
Value<bool> active;
PlayerParameters flags;
Value<float> duration;
2017-10-10 03:50:48 +00:00
Value<float> sfxDist;
struct CameraShakerComponent : BigYAML
2015-09-10 20:30:35 +00:00
{
DECL_YAML
2017-03-20 05:09:53 +00:00
PlayerParameters flags;
2017-10-10 03:50:48 +00:00
struct CameraShakePoint : BigYAML
2016-04-18 01:58:13 +00:00
{
DECL_YAML
2017-03-20 05:09:53 +00:00
PlayerParameters flags;
2017-10-10 03:50:48 +00:00
Value<float> attackTime;
Value<float> sustainTime;
Value<float> duration;
Value<float> magnitude;
2016-04-18 01:58:13 +00:00
};
2017-10-10 03:50:48 +00:00
CameraShakePoint am;
CameraShakePoint fm;
} shakerComponents[3];
2015-09-10 20:30:35 +00:00
};
}
}
#endif