metaforce/DataSpec/DNAMP1/EVNT.cpp

29 lines
777 B
C++
Raw Normal View History

2015-08-15 04:12:15 +00:00
#include "EVNT.hpp"
2018-12-08 05:30:43 +00:00
namespace DataSpec::DNAMP1 {
2015-08-15 04:12:15 +00:00
2018-02-22 07:24:51 +00:00
template <class Op>
2018-12-08 05:30:43 +00:00
void EVNT::Enumerate(typename Op::StreamT& s) {
Do<Op>({"version"}, version, s);
2015-08-15 04:12:15 +00:00
2018-12-08 05:30:43 +00:00
DoSize<Op>({"boolPOICount"}, boolPOICount, s);
Do<Op>({"boolPOINodes"}, boolPOINodes, boolPOICount, s);
2015-08-15 04:12:15 +00:00
2018-12-08 05:30:43 +00:00
DoSize<Op>({"int32POICount"}, int32POICount, s);
Do<Op>({"int32POINodes"}, int32POINodes, int32POICount, s);
2015-08-15 04:12:15 +00:00
2018-12-08 05:30:43 +00:00
DoSize<Op>({"particlePOICount"}, particlePOICount, s);
Do<Op>({"particlePOINodes"}, particlePOINodes, particlePOICount, s);
2015-08-15 04:12:15 +00:00
2018-12-08 05:30:43 +00:00
if (version == 2) {
DoSize<Op>({"soundPOICount"}, soundPOICount, s);
Do<Op>({"soundPOINodes"}, soundPOINodes, soundPOICount, s);
}
2015-08-15 04:12:15 +00:00
}
2018-02-22 07:24:51 +00:00
AT_SPECIALIZE_DNA_YAML(EVNT)
2015-08-15 04:12:15 +00:00
2018-12-08 05:30:43 +00:00
const char* EVNT::DNAType() { return "urde::DNAMP1::EVNT"; }
2016-01-19 05:32:34 +00:00
2018-12-08 05:30:43 +00:00
} // namespace DataSpec::DNAMP1