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

More AutoMapper imps (CMapArea and CMappableObject)

This commit is contained in:
2016-07-30 18:43:34 -07:00
parent df4ce27240
commit 4541234706
8 changed files with 158 additions and 13 deletions

View File

@@ -2,6 +2,7 @@
#define __URDE_CMAPAREA_HPP__
#include "RetroTypes.hpp"
#include "CResFactory.hpp"
#include "zeus/CAABox.hpp"
#include "zeus/CVector3f.hpp"
@@ -20,8 +21,21 @@ public:
};
private:
u32 x0_magic;
u32 x4_version;
u32 x8_;
u32 xc_;
zeus::CAABox x10_box;
u32 x28_mappableObjCount;
u32 x2c_vertexCount;
u32 x30_surfaceCount;
u32 x34_size;
u8* x38_moStart;
u8* x3c_vertexStart;
u32 x40_surfaceStart;
std::unique_ptr<u8[]> x44_buf;
public:
CMapArea(CInputStream&, uint);
CMapArea(CInputStream&, u32);
void PostConstruct();
bool GetIsVisibleToAutoMapper(bool, bool) const;
zeus::CVector3f GetAreaCenterPoint() const;
@@ -33,5 +47,7 @@ public:
u32 GetNumSurfaces() const;
};
CFactoryFnReturn FMapAreaFactory(const SObjectTag& objTag, CInputStream& in, const CVParamTransfer&);
}
#endif // __URDE_CMAPAREA_HPP__