metaforce/DataSpec/DNAMP1/ScriptObjects/WorldTeleporter.cpp

49 lines
1.5 KiB
C++
Raw Normal View History

2018-02-22 07:24:51 +00:00
#include "WorldTeleporter.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 WorldTeleporter::Enumerate(typename Op::StreamT& s) {
IScriptObject::Enumerate<Op>(s);
Do<Op>({"name"}, name, s);
Do<Op>({"active"}, active, s);
2018-12-08 05:30:43 +00:00
Do<Op>({"mlvl"}, mlvl, s);
Do<Op>({"mrea"}, mrea, s);
Do<Op>({"animationParameters"}, animationParameters, s);
Do<Op>({"playerScale"}, playerScale, s);
Do<Op>({"platformModel"}, platformModel, s);
Do<Op>({"platformScale"}, platformScale, s);
Do<Op>({"blackgroundModel"}, backgroundModel, s);
Do<Op>({"backgroundScale"}, backgroundScale, s);
Do<Op>({"upElevator"}, upElevator, s);
Do<Op>({"elevatorSound"}, elevatorSound, s);
Do<Op>({"volume"}, volume, s);
Do<Op>({"panning"}, panning, s);
Do<Op>({"showText"}, showText, s);
2018-12-08 05:30:43 +00:00
Do<Op>({"font"}, font, s);
Do<Op>({"strg"}, strg, s);
Do<Op>({"fadeWhite"}, fadeWhite, s);
Do<Op>({"charFadeInTime"}, charFadeInTime, s);
Do<Op>({"charsPerSecond"}, charFadeInTime, s);
Do<Op>({"showDelay"}, showDelay, s);
2018-02-22 07:24:51 +00:00
2018-12-08 05:30:43 +00:00
if (propertyCount == 26) {
Do<Op>({"audioStream"}, audioStream, s);
Do<Op>({"unknown13"}, unknown13, s);
Do<Op>({"unknown14"}, unknown14, s);
Do<Op>({"unknown15"}, unknown15, s);
Do<Op>({"unknown16"}, unknown16, s);
} else {
unknown13 = false;
unknown14 = 0.0;
unknown15 = 0.0;
unknown16 = 0.0;
}
2018-02-22 07:24:51 +00:00
}
2018-12-08 05:30:43 +00:00
const char* WorldTeleporter::DNAType() { return "urde::DNAMP1::WorldTeleporter"; }
2018-02-22 07:24:51 +00:00
AT_SPECIALIZE_DNA_YAML(WorldTeleporter)
2018-12-08 05:30:43 +00:00
} // namespace DataSpec::DNAMP1