#ifndef __URDE_CCHARACTERINFO_HPP__ #define __URDE_CCHARACTERINFO_HPP__ #include "IOStreams.hpp" #include "CPASDatabase.hpp" #include "zeus/CAABox.hpp" #include "CEffectComponent.hpp" namespace urde { class CCharacterInfo { public: struct CParticleResData { std::vector x0_part; std::vector x10_swhc; std::vector x20_; std::vector x30_elsc; CParticleResData(CInputStream& in, u16 tableCount); }; private: u16 x0_tableCount; std::string x4_name; ResId x14_cmdl; ResId x18_cskr; ResId x1c_cinf; std::vector>> x20_animInfo; CPASDatabase x30_pasDatabase; CParticleResData x44_partRes; u32 x84_unk; std::vector> x88_aabbs; std::vector>> x98_effects; ResId xa8_cmdlOverlay = 0; ResId xac_cskrOverlay = 0; std::vector xb0_animIdxs; public: CCharacterInfo(CInputStream& in); const std::string& GetCharacterName() const { return x4_name; } ResId GetModelId() const {return x14_cmdl;} ResId GetSkinRulesId() const {return x18_cskr;} ResId GetCharLayoutInfoId() const {return x1c_cinf;} const std::vector>& GetAnimBBoxList() const { return x88_aabbs; } ResId GetIceModelId() const {return xa8_cmdlOverlay;} ResId GetIceSkinRulesId() const {return xac_cskrOverlay;} const CParticleResData& GetParticleResData() const {return x44_partRes;} u32 GetAnimationIndex(u32 idx) const { return xb0_animIdxs[idx]; } }; } #endif // __URDE_CCHARACTERINFO_HPP__