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

Various CAnimTree implementations

This commit is contained in:
2016-09-11 11:40:33 -07:00
parent 50ee1246cf
commit 758d0f48ff
11 changed files with 112 additions and 27 deletions

View File

@@ -33,6 +33,23 @@ CPOINode::CPOINode(CInputStream& in)
x34_flags(in.readUint32Big())
{}
bool CPOINode::operator>(const CPOINode& other) const
{
return x1c_time < other.x1c_time;
}
bool CPOINode::operator<(const CPOINode& other) const
{
return x1c_time > other.x1c_time;
}
bool CPOINode::compare(const CPOINode& a, const CPOINode& b)
{
if (a > b)
return 1;
return (a < b);
}
template <class T>
u32 _getPOIList(const CCharAnimTime& time,
T* listOut,