2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CCHARACTERINFO_HPP__
|
|
|
|
#define __URDE_CCHARACTERINFO_HPP__
|
2016-04-10 04:49:02 +00:00
|
|
|
|
|
|
|
#include "IOStreams.hpp"
|
|
|
|
#include "CPASDatabase.hpp"
|
2016-04-10 21:22:59 +00:00
|
|
|
#include "zeus/CAABox.hpp"
|
|
|
|
#include "CEffectComponent.hpp"
|
2016-04-10 04:49:02 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CCharacterInfo
|
|
|
|
{
|
2017-06-03 06:03:07 +00:00
|
|
|
friend class CAnimData;
|
2016-04-10 21:22:59 +00:00
|
|
|
public:
|
|
|
|
struct CParticleResData
|
|
|
|
{
|
2017-08-13 05:26:14 +00:00
|
|
|
std::vector<CAssetId> x0_part;
|
|
|
|
std::vector<CAssetId> x10_swhc;
|
|
|
|
std::vector<CAssetId> x20_elsc;
|
|
|
|
std::vector<CAssetId> x30_elsc;
|
2016-04-10 21:22:59 +00:00
|
|
|
CParticleResData(CInputStream& in, u16 tableCount);
|
|
|
|
};
|
|
|
|
private:
|
2016-04-10 04:49:02 +00:00
|
|
|
u16 x0_tableCount;
|
|
|
|
std::string x4_name;
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId x14_cmdl;
|
|
|
|
CAssetId x18_cskr;
|
|
|
|
CAssetId x1c_cinf;
|
2016-04-10 04:49:02 +00:00
|
|
|
std::vector<std::pair<u32, std::pair<std::string, std::string>>> x20_animInfo;
|
|
|
|
CPASDatabase x30_pasDatabase;
|
2016-04-10 21:22:59 +00:00
|
|
|
CParticleResData x44_partRes;
|
|
|
|
u32 x84_unk;
|
|
|
|
std::vector<std::pair<std::string, zeus::CAABox>> x88_aabbs;
|
|
|
|
std::vector<std::pair<std::string, std::vector<CEffectComponent>>> x98_effects;
|
|
|
|
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId xa8_cmdlOverlay = 0;
|
|
|
|
CAssetId xac_cskrOverlay = 0;
|
2016-04-10 21:22:59 +00:00
|
|
|
|
|
|
|
std::vector<u32> xb0_animIdxs;
|
2016-04-10 04:49:02 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CCharacterInfo(CInputStream& in);
|
2016-04-13 06:07:23 +00:00
|
|
|
|
2017-11-13 06:19:18 +00:00
|
|
|
std::string_view GetCharacterName() const { return x4_name; }
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId GetModelId() const {return x14_cmdl;}
|
|
|
|
CAssetId GetSkinRulesId() const {return x18_cskr;}
|
|
|
|
CAssetId GetCharLayoutInfoId() const {return x1c_cinf;}
|
2016-04-15 03:02:21 +00:00
|
|
|
|
2016-09-04 02:27:35 +00:00
|
|
|
const std::vector<std::pair<std::string, zeus::CAABox>>& GetAnimBBoxList() const { return x88_aabbs; }
|
|
|
|
|
2017-08-13 05:26:14 +00:00
|
|
|
CAssetId GetIceModelId() const {return xa8_cmdlOverlay;}
|
|
|
|
CAssetId GetIceSkinRulesId() const {return xac_cskrOverlay;}
|
2016-04-16 21:49:47 +00:00
|
|
|
|
|
|
|
const CParticleResData& GetParticleResData() const {return x44_partRes;}
|
2017-03-18 05:12:27 +00:00
|
|
|
u32 GetAnimationIndex(u32 idx) const { return xb0_animIdxs.at(idx); }
|
2016-09-25 16:45:22 +00:00
|
|
|
const CPASDatabase& GetPASDatabase() const { return x30_pasDatabase; }
|
2016-04-10 04:49:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CCHARACTERINFO_HPP__
|