2016-04-09 23:19:17 +00:00
|
|
|
#include "CSkinRules.hpp"
|
2016-04-12 22:28:08 +00:00
|
|
|
#include "CToken.hpp"
|
2016-04-09 23:19:17 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CSkinRules::CSkinRules(CInputStream& in)
|
|
|
|
{
|
2016-04-12 22:28:08 +00:00
|
|
|
u32 bankCount = in.readUint32Big();
|
|
|
|
x0_skinBanks.reserve(bankCount);
|
|
|
|
for (u32 i=0 ; i<bankCount ; ++i)
|
|
|
|
x0_skinBanks.emplace_back(in);
|
|
|
|
}
|
|
|
|
|
2016-09-02 19:32:57 +00:00
|
|
|
CFactoryFnReturn FSkinRulesFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& params,
|
|
|
|
CObjectReference* selfRef)
|
2016-04-12 22:28:08 +00:00
|
|
|
{
|
|
|
|
return TToken<CSkinRules>::GetIObjObjectFor(std::make_unique<CSkinRules>(in));
|
2016-04-09 23:19:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|