2019-12-22 20:04:07 +00:00
|
|
|
#include "Runtime/CDependencyGroup.hpp"
|
|
|
|
#include "Runtime/CToken.hpp"
|
2016-04-12 11:37:07 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-04-24 00:31:27 +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
|
|
|
}
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|