2019-12-22 20:04:07 +00:00
|
|
|
#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) {
|
2022-02-18 07:37:54 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|