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

Cleanup CPathFindArea

This commit is contained in:
2019-10-24 22:44:37 -07:00
parent 18382e5bb6
commit 246e233dce
3 changed files with 27 additions and 28 deletions

View File

@@ -33,13 +33,13 @@ class CPFAreaOctree {
u32 x0_isLeaf;
zeus::CAABox x4_aabb;
zeus::CVector3f x1c_center;
CPFAreaOctree* x28_children[8];
std::array<CPFAreaOctree*, 8> x28_children {};
rstl::prereserved_vector<CPFRegion*> x48_regions;
public:
CPFAreaOctree(CMemoryInStream& in);
explicit CPFAreaOctree(CMemoryInStream& in);
void Fixup(CPFArea& area);
int GetChildIndex(const zeus::CVector3f& point) const;
u32 GetChildIndex(const zeus::CVector3f& point) const;
rstl::prereserved_vector<CPFRegion*>* GetRegionList(const zeus::CVector3f& point);
void GetRegionListList(rstl::reserved_vector<rstl::prereserved_vector<CPFRegion*>*, 32>& listOut,
const zeus::CVector3f& point, float padding);