metaforce/DataSpec/DNAMP1/ScriptObjects/Parameters.cpp

25 lines
552 B
C++
Raw Normal View History

2015-11-10 02:07:15 +00:00
#include "Parameters.hpp"
#include "../ANCS.hpp"
2016-02-13 09:02:47 +00:00
namespace DataSpec
2015-11-10 02:07:15 +00:00
{
namespace DNAMP1
{
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);
ANCS ancs(ancsEnt->id);
2015-11-10 02:07:15 +00:00
{
PAKEntryReadStream rs = ancsEnt->beginReadStream(*node);
ancs.read(rs);
}
return ancs.characterSet.characters.at(character).cinf.getBaseId();
2015-11-10 02:07:15 +00:00
}
}
}