mirror of https://github.com/AxioDL/metaforce.git
20 lines
528 B
C++
20 lines
528 B
C++
#include "Parameters.hpp"
|
|
#include "../ANCS.hpp"
|
|
|
|
namespace DataSpec::DNAMP1 {
|
|
|
|
UniqueID32 AnimationParameters::getCINF(PAKRouter<PAKBridge>& pakRouter) const {
|
|
if (!animationCharacterSet.isValid())
|
|
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;
|
|
}
|
|
|
|
} // namespace DataSpec::DNAMP1
|