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
|
|
|
}
|
|
|
|
|
2016-09-02 19:32:57 +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
|