2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CSKINRULES_HPP__
|
|
|
|
#define __URDE_CSKINRULES_HPP__
|
2016-04-05 01:51:25 +00:00
|
|
|
|
2016-04-09 23:19:17 +00:00
|
|
|
#include "RetroTypes.hpp"
|
2016-04-12 22:28:08 +00:00
|
|
|
#include "CSkinBank.hpp"
|
|
|
|
#include "CFactoryMgr.hpp"
|
2016-04-09 23:19:17 +00:00
|
|
|
|
2016-04-05 01:51:25 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
2016-08-21 20:39:18 +00:00
|
|
|
class CPoseAsTransforms;
|
2016-04-05 01:51:25 +00:00
|
|
|
|
|
|
|
class CSkinRules
|
|
|
|
{
|
2016-04-12 22:28:08 +00:00
|
|
|
std::vector<CSkinBank> x0_skinBanks;
|
2016-04-09 23:19:17 +00:00
|
|
|
public:
|
|
|
|
CSkinRules(CInputStream& in);
|
2016-04-12 22:28:08 +00:00
|
|
|
void BuildAccumulatedTransforms();
|
2016-08-21 20:39:18 +00:00
|
|
|
void GetBankTransforms(std::vector<const zeus::CTransform*>& out,
|
|
|
|
const CPoseAsTransforms& pose, int skinBankIdx) const
|
|
|
|
{
|
|
|
|
x0_skinBanks[skinBankIdx].GetBankTransforms(out, pose);
|
|
|
|
}
|
2016-04-05 01:51:25 +00:00
|
|
|
};
|
|
|
|
|
2016-04-12 22:28:08 +00:00
|
|
|
CFactoryFnReturn FSkinRulesFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& params);
|
|
|
|
|
2016-04-05 01:51:25 +00:00
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CSKINRULES_HPP__
|