2016-04-12 11:37:07 +00:00
|
|
|
#include "CDependencyGroup.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
CDependencyGroup::CDependencyGroup(CInputStream& in)
|
|
|
|
{
|
|
|
|
ReadFromStream(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
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-09-02 19:32:57 +00:00
|
|
|
CFactoryFnReturn FDependencyGroupFactory(const SObjectTag& /*tag*/, CInputStream& in, const CVParamTransfer& /*param*/,
|
|
|
|
CObjectReference* selfRef)
|
2016-04-12 11:37:07 +00:00
|
|
|
{
|
2017-07-15 14:13:36 +00:00
|
|
|
return TToken<CDependencyGroup>::GetIObjObjectFor(std::make_unique<CDependencyGroup>(in));
|
2016-04-12 11:37:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|