2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

Submodule updates

This commit is contained in:
Jack Andersen
2015-11-09 16:07:15 -10:00
parent 9cb8b10fda
commit b94e14cd55
17 changed files with 146 additions and 42 deletions

View File

@@ -0,0 +1,24 @@
#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;
}
}
}