mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-17 00:05:52 +00:00
24 lines
608 B
C++
24 lines
608 B
C++
#include "CCollidableOBBTreeGroup.hpp"
|
|
#include "COBBTree.hpp"
|
|
#include "CToken.hpp"
|
|
|
|
namespace urde
|
|
{
|
|
|
|
CCollidableOBBTreeGroup::CCollidableOBBTreeGroup(CInputStream& in)
|
|
{
|
|
u32 treeCount = in.readUint32Big();
|
|
x0_trees.reserve(treeCount);
|
|
|
|
for (u32 i = 0 ; i < treeCount ; i++)
|
|
x0_trees.push_back(in);
|
|
}
|
|
|
|
CFactoryFnReturn FCollidableOBBTreeGroupFactory(const SObjectTag &tag, CInputStream &in,
|
|
const CVParamTransfer &vparms)
|
|
{
|
|
return TToken<CCollidableOBBTreeGroup>::GetIObjObjectFor(std::make_unique<CCollidableOBBTreeGroup>(in));
|
|
}
|
|
|
|
}
|