2015-11-10 02:07:15 +00:00
|
|
|
#include "Parameters.hpp"
|
|
|
|
#include "../ANCS.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP1
|
2015-11-10 02:07:15 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
UniqueID32 AnimationParameters::getCINF(PAKRouter<PAKBridge>& pakRouter) const
|
|
|
|
{
|
|
|
|
if (!animationCharacterSet)
|
|
|
|
return UniqueID32();
|
2016-03-04 23:04:53 +00:00
|
|
|
const nod::Node* node;
|
2015-11-10 02:07:15 +00:00
|
|
|
const PAK::Entry* ancsEnt = pakRouter.lookupEntry(animationCharacterSet, &node);
|
2016-04-07 03:40:25 +00:00
|
|
|
ANCS ancs;
|
2015-11-10 02:07:15 +00:00
|
|
|
{
|
|
|
|
PAKEntryReadStream rs = ancsEnt->beginReadStream(*node);
|
|
|
|
ancs.read(rs);
|
|
|
|
}
|
2016-04-07 03:40:25 +00:00
|
|
|
return ancs.characterSet.characters.at(character).cinf;
|
|
|
|
}
|
2015-11-10 02:07:15 +00:00
|
|
|
|
|
|
|
}
|