metaforce/Runtime/CDependencyGroup.cpp

21 lines
767 B
C++
Raw Normal View History

#include "Runtime/CDependencyGroup.hpp"
#include "Runtime/CToken.hpp"
2016-04-12 11:37:07 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
CDependencyGroup::CDependencyGroup(CInputStream& in) { ReadFromStream(in); }
2016-04-12 11:37:07 +00:00
2018-12-08 05:30:43 +00:00
void CDependencyGroup::ReadFromStream(CInputStream& in) {
u32 depCount = in.ReadLong();
2018-12-08 05:30:43 +00:00
x0_objectTags.reserve(depCount);
for (u32 i = 0; i < depCount; i++)
x0_objectTags.emplace_back(in);
2016-04-12 11:37:07 +00:00
}
CFactoryFnReturn FDependencyGroupFactory([[maybe_unused]] const SObjectTag& tag, CInputStream& in,
[[maybe_unused]] const CVParamTransfer& param,
[[maybe_unused]] CObjectReference* selfRef) {
2018-12-08 05:30:43 +00:00
return TToken<CDependencyGroup>::GetIObjObjectFor(std::make_unique<CDependencyGroup>(in));
2016-04-12 11:37:07 +00:00
}
2021-04-10 08:42:06 +00:00
} // namespace metaforce