mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 19:44:55 +00:00
DGRP Fixes
This commit is contained in:
24
Runtime/CDependencyGroup.cpp
Normal file
24
Runtime/CDependencyGroup.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
CFactoryFnReturn FDependencyGroupFactory(const SObjectTag& /*tag*/, CInputStream& in, const CVParamTransfer& /*param*/)
|
||||
{
|
||||
return TToken<CDependencyGroup>::GetIObjObjectFor(std::unique_ptr<CDependencyGroup>(new CDependencyGroup(in)));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user