metaforce/Runtime/CDependencyGroup.cpp

20 lines
662 B
C++
Raw Normal View History

2016-04-12 11:37:07 +00:00
#include "CDependencyGroup.hpp"
#include "CToken.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
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.readUint32Big();
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(const SObjectTag& /*tag*/, CInputStream& in, const CVParamTransfer& /*param*/,
2018-12-08 05:30:43 +00:00
CObjectReference* selfRef) {
return TToken<CDependencyGroup>::GetIObjObjectFor(std::make_unique<CDependencyGroup>(in));
2016-04-12 11:37:07 +00:00
}
2018-12-08 05:30:43 +00:00
} // namespace urde