metaforce/Runtime/Character/CCharLayoutInfo.hpp

45 lines
927 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CCHARLAYOUTINFO_HPP__
#define __URDE_CCHARLAYOUTINFO_HPP__
2016-04-09 23:19:17 +00:00
#include "CFactoryMgr.hpp"
#include "IOStreams.hpp"
#include "CSegIdList.hpp"
#include "CSegId.hpp"
namespace urde
{
2016-04-09 23:19:17 +00:00
class CCharLayoutNode
{
public:
struct Bone
{
CSegId x0_parentId;
zeus::CVector3f x4_origin;
std::vector<CSegId> x10_children;
void read(CInputStream& in);
};
private:
u8 x0_boneCount;
CSegId x8_ids[100];
Bone x108_bones[100];
public:
CCharLayoutNode(CInputStream& in);
};
class CCharLayoutInfo
{
2016-04-09 23:19:17 +00:00
std::shared_ptr<CCharLayoutNode> x0_node;
CSegIdList x8_segIdList;
std::map<std::string, CSegId> x18_segIdMap;
public:
CCharLayoutInfo(CInputStream& in);
const CSegIdList& GetSegIdList() const {return x8_segIdList;}
};
2016-04-09 23:19:17 +00:00
CFactoryFnReturn FCharLayoutInfo(const SObjectTag&, CInputStream&, const CVParamTransfer&);
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CCHARLAYOUTINFO_HPP__