mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Various CAnimTree implementations
This commit is contained in:
@@ -16,42 +16,69 @@ SAdvancementResults CAnimTreeDoubleChild::VAdvanceView(const CCharAnimTime& a)
|
||||
}
|
||||
|
||||
u32 CAnimTreeDoubleChild::VGetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut,
|
||||
u32 capacity, u32 iterator, u32) const
|
||||
u32 capacity, u32 iterator, u32 unk) const
|
||||
{
|
||||
return 0;
|
||||
u32 newCapacity = x14_a->GetBoolPOIList(time, listOut, capacity, iterator, unk);
|
||||
newCapacity += x18_b->GetBoolPOIList(time, listOut, capacity, newCapacity + iterator, unk);
|
||||
if (newCapacity > capacity)
|
||||
newCapacity = capacity;
|
||||
|
||||
std::sort(listOut, listOut + newCapacity, CPOINode::compare);
|
||||
|
||||
return newCapacity;
|
||||
}
|
||||
|
||||
u32 CAnimTreeDoubleChild::VGetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut,
|
||||
u32 capacity, u32 iterator, u32) const
|
||||
u32 capacity, u32 iterator, u32 unk) const
|
||||
{
|
||||
return 0;
|
||||
u32 newCapacity = x14_a->GetInt32POIList(time, listOut, capacity, iterator, unk);
|
||||
newCapacity += x18_b->GetInt32POIList(time, listOut, capacity, newCapacity + iterator, unk);
|
||||
if (newCapacity > capacity)
|
||||
newCapacity = capacity;
|
||||
|
||||
std::sort(listOut, listOut + newCapacity, CPOINode::compare);
|
||||
|
||||
return newCapacity;
|
||||
}
|
||||
|
||||
u32 CAnimTreeDoubleChild::VGetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut,
|
||||
u32 capacity, u32 iterator, u32) const
|
||||
u32 capacity, u32 iterator, u32 unk) const
|
||||
{
|
||||
return 0;
|
||||
u32 newCapacity = x14_a->GetParticlePOIList(time, listOut, capacity, iterator, unk);
|
||||
newCapacity += x18_b->GetParticlePOIList(time, listOut, capacity, newCapacity + iterator, unk);
|
||||
if (newCapacity > capacity)
|
||||
newCapacity = capacity;
|
||||
|
||||
std::sort(listOut, listOut + newCapacity, CPOINode::compare);
|
||||
|
||||
return newCapacity;
|
||||
}
|
||||
|
||||
u32 CAnimTreeDoubleChild::VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut,
|
||||
u32 capacity, u32 iterator, u32) const
|
||||
u32 capacity, u32 iterator, u32 unk) const
|
||||
{
|
||||
return 0;
|
||||
u32 newCapacity = x14_a->GetSoundPOIList(time, listOut, capacity, iterator, unk);
|
||||
newCapacity += x18_b->GetSoundPOIList(time, listOut, capacity, newCapacity + iterator, unk);
|
||||
if (newCapacity > capacity)
|
||||
newCapacity = capacity;
|
||||
|
||||
std::sort(listOut, listOut + newCapacity, CPOINode::compare);
|
||||
return newCapacity;
|
||||
}
|
||||
|
||||
bool CAnimTreeDoubleChild::VGetBoolPOIState(const char* name) const
|
||||
{
|
||||
return false;
|
||||
return x18_b->VGetBoolPOIState(name);
|
||||
}
|
||||
|
||||
s32 CAnimTreeDoubleChild::VGetInt32POIState(const char* name) const
|
||||
{
|
||||
return 0;
|
||||
return x18_b->VGetBoolPOIState(name);
|
||||
}
|
||||
|
||||
CParticleData::EParentedMode CAnimTreeDoubleChild::VGetParticlePOIState(const char* name) const
|
||||
{
|
||||
return CParticleData::EParentedMode::Initial;
|
||||
return x18_b->VGetParticlePOIState(name);
|
||||
}
|
||||
|
||||
void CAnimTreeDoubleChild::VSetPhase(float)
|
||||
|
||||
Reference in New Issue
Block a user