mirror of https://github.com/AxioDL/metaforce.git
25 lines
524 B
C++
25 lines
524 B
C++
|
#include "Parameters.hpp"
|
||
|
#include "../ANCS.hpp"
|
||
|
|
||
|
namespace Retro
|
||
|
{
|
||
|
namespace DNAMP1
|
||
|
{
|
||
|
|
||
|
UniqueID32 AnimationParameters::getCINF(PAKRouter<PAKBridge>& pakRouter) const
|
||
|
{
|
||
|
if (!animationCharacterSet)
|
||
|
return UniqueID32();
|
||
|
const NOD::Node* node;
|
||
|
const PAK::Entry* ancsEnt = pakRouter.lookupEntry(animationCharacterSet, &node);
|
||
|
ANCS ancs;
|
||
|
{
|
||
|
PAKEntryReadStream rs = ancsEnt->beginReadStream(*node);
|
||
|
ancs.read(rs);
|
||
|
}
|
||
|
return ancs.characterSet.characters.at(character).cinf;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|