mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 07:47:42 +00:00
IAnimReader: Make use of size_t for capacity and iterators
Allows using container sizes and capacities without needing to cast them, allowing for dehardcoding of array sizes in some scenarios.
This commit is contained in:
@@ -22,31 +22,35 @@ SAdvancementResults IAnimReader::VGetAdvancementResults(const CCharAnimTime& a,
|
||||
return ret;
|
||||
}
|
||||
|
||||
u32 IAnimReader::GetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, u32 capacity, u32 iterator,
|
||||
u32 unk) const {
|
||||
if (time.GreaterThanZero())
|
||||
size_t IAnimReader::GetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, size_t capacity, size_t iterator,
|
||||
u32 unk) const {
|
||||
if (time.GreaterThanZero()) {
|
||||
return VGetBoolPOIList(time, listOut, capacity, iterator, unk);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 IAnimReader::GetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, u32 capacity, u32 iterator,
|
||||
u32 unk) const {
|
||||
if (time.GreaterThanZero())
|
||||
return VGetInt32POIList(time, listOut, capacity, iterator, unk);
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 IAnimReader::GetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, u32 capacity, u32 iterator,
|
||||
size_t IAnimReader::GetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, size_t capacity, size_t iterator,
|
||||
u32 unk) const {
|
||||
if (time.GreaterThanZero())
|
||||
return VGetParticlePOIList(time, listOut, capacity, iterator, unk);
|
||||
if (time.GreaterThanZero()) {
|
||||
return VGetInt32POIList(time, listOut, capacity, iterator, unk);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 IAnimReader::GetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, u32 capacity, u32 iterator,
|
||||
u32 unk) const {
|
||||
if (time.GreaterThanZero())
|
||||
size_t IAnimReader::GetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, size_t capacity,
|
||||
size_t iterator, u32 unk) const {
|
||||
if (time.GreaterThanZero()) {
|
||||
return VGetParticlePOIList(time, listOut, capacity, iterator, unk);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t IAnimReader::GetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, size_t capacity, size_t iterator,
|
||||
u32 unk) const {
|
||||
if (time.GreaterThanZero()) {
|
||||
return VGetSoundPOIList(time, listOut, capacity, iterator, unk);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user