metaforce/DataSpec/DNAMP1/ScriptObjects/Oculus.cpp

33 lines
978 B
C++
Raw Normal View History

2018-02-22 07:24:51 +00:00
#include "Oculus.hpp"
2018-12-08 05:30:43 +00:00
namespace DataSpec::DNAMP1 {
2018-02-22 07:24:51 +00:00
template <class Op>
2018-12-08 05:30:43 +00:00
void Oculus::Enumerate(typename Op::StreamT& s) {
IScriptObject::Enumerate<Op>(s);
Do<Op>({"name"}, name, s);
Do<Op>({"location"}, location, s);
Do<Op>({"orientation"}, orientation, s);
Do<Op>({"scale"}, scale, s);
Do<Op>({"patternedInfo"}, patternedInfo, s);
Do<Op>({"actorParameters"}, actorParameters, s);
Do<Op>({"unknown1"}, unknown1, s);
Do<Op>({"unknown2"}, unknown2, s);
Do<Op>({"unknown3"}, unknown3, s);
Do<Op>({"unknown4"}, unknown4, s);
Do<Op>({"unknown5"}, unknown5, s);
Do<Op>({"unknown6"}, unknown6, s);
Do<Op>({"damageVulnerabilty"}, damageVulnerabilty, s);
Do<Op>({"unknown7"}, unknown7, s);
Do<Op>({"damageInfo"}, damageInfo, s);
if (propertyCount == 16)
Do<Op>({"unknown8"}, unknown8, s);
else
unknown8 = 0.f;
2018-02-22 07:24:51 +00:00
}
2018-12-08 05:30:43 +00:00
const char* Oculus::DNAType() { return "urde::DNAMP1::Oculus"; }
2018-02-22 07:24:51 +00:00
AT_SPECIALIZE_DNA_YAML(Oculus)
2018-12-08 05:30:43 +00:00
} // namespace DataSpec::DNAMP1