mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 22:27:41 +00:00
New code style refactor
This commit is contained in:
@@ -1,34 +1,28 @@
|
||||
#include "EVNT.hpp"
|
||||
|
||||
namespace DataSpec::DNAMP1
|
||||
{
|
||||
namespace DataSpec::DNAMP1 {
|
||||
|
||||
template <class Op>
|
||||
void EVNT::Enumerate(typename Op::StreamT& s)
|
||||
{
|
||||
Do<Op>({"version"}, version, s);
|
||||
void EVNT::Enumerate(typename Op::StreamT& s) {
|
||||
Do<Op>({"version"}, version, s);
|
||||
|
||||
DoSize<Op>({"boolPOICount"}, boolPOICount, s);
|
||||
Do<Op>({"boolPOINodes"}, boolPOINodes, boolPOICount, s);
|
||||
DoSize<Op>({"boolPOICount"}, boolPOICount, s);
|
||||
Do<Op>({"boolPOINodes"}, boolPOINodes, boolPOICount, s);
|
||||
|
||||
DoSize<Op>({"int32POICount"}, int32POICount, s);
|
||||
Do<Op>({"int32POINodes"}, int32POINodes, int32POICount, s);
|
||||
DoSize<Op>({"int32POICount"}, int32POICount, s);
|
||||
Do<Op>({"int32POINodes"}, int32POINodes, int32POICount, s);
|
||||
|
||||
DoSize<Op>({"particlePOICount"}, particlePOICount, s);
|
||||
Do<Op>({"particlePOINodes"}, particlePOINodes, particlePOICount, s);
|
||||
DoSize<Op>({"particlePOICount"}, particlePOICount, s);
|
||||
Do<Op>({"particlePOINodes"}, particlePOINodes, particlePOICount, s);
|
||||
|
||||
if (version == 2)
|
||||
{
|
||||
DoSize<Op>({"soundPOICount"}, soundPOICount, s);
|
||||
Do<Op>({"soundPOINodes"}, soundPOINodes, soundPOICount, s);
|
||||
}
|
||||
if (version == 2) {
|
||||
DoSize<Op>({"soundPOICount"}, soundPOICount, s);
|
||||
Do<Op>({"soundPOINodes"}, soundPOINodes, soundPOICount, s);
|
||||
}
|
||||
}
|
||||
|
||||
AT_SPECIALIZE_DNA_YAML(EVNT)
|
||||
|
||||
const char* EVNT::DNAType()
|
||||
{
|
||||
return "urde::DNAMP1::EVNT";
|
||||
}
|
||||
const char* EVNT::DNAType() { return "urde::DNAMP1::EVNT"; }
|
||||
|
||||
}
|
||||
} // namespace DataSpec::DNAMP1
|
||||
|
||||
Reference in New Issue
Block a user