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

Few more character imps

This commit is contained in:
Jack Andersen
2016-04-10 21:47:21 -10:00
parent 7e61fb3c15
commit b10bd229e6
8 changed files with 68 additions and 36 deletions

View File

@@ -29,7 +29,18 @@ CCharAnimTime IMetaAnim::GetTime(const CPreAdvanceIndicator& ind, const IAnimRea
return ind.GetTime();
CBoolPOINode nodes[64];
CCharAnimTime rem = anim.VGetTimeRemaining();
u32 count = anim.VGetBoolPOIList(rem, nodes, 64, 0, 0);
const char* cmpStr = ind.GetString();
for (u32 i=0 ; i<count ; ++i)
{
CBoolPOINode& node = nodes[i];
if (node.GetName().compare(cmpStr) || !node.GetValue())
continue;
return node.GetTime();
}
return {};
}
}