2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 02:27:43 +00:00

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -1,25 +1,19 @@
#include "CDependencyGroup.hpp"
#include "CToken.hpp"
namespace urde
{
CDependencyGroup::CDependencyGroup(CInputStream& in)
{
ReadFromStream(in);
}
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);
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*/,
CObjectReference* selfRef)
{
return TToken<CDependencyGroup>::GetIObjObjectFor(std::make_unique<CDependencyGroup>(in));
CObjectReference* selfRef) {
return TToken<CDependencyGroup>::GetIObjObjectFor(std::make_unique<CDependencyGroup>(in));
}
}
} // namespace urde