mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-19 16:05:23 +00:00
Use EntityList instead of `rstl::resverved_vector<TUniqueId, 1024>' directly
This commit is contained in:
@@ -1146,7 +1146,7 @@ void CIceSheegoth::AttractProjectiles(CStateManager& mgr) {
|
||||
if (!IsAlive())
|
||||
return;
|
||||
|
||||
rstl::reserved_vector<TUniqueId, kMaxEntities> nearProjectiles;
|
||||
EntityList nearProjectiles;
|
||||
zeus::CAABox attractionBounds =
|
||||
zeus::CAABox{GetTranslation() - x56c_sheegothData.Get_x14(), GetTranslation() + x56c_sheegothData.Get_x14()};
|
||||
mgr.BuildNearList(nearProjectiles, attractionBounds, CMaterialFilter::MakeInclude({EMaterialTypes::Projectile}),
|
||||
@@ -1156,7 +1156,7 @@ void CIceSheegoth::AttractProjectiles(CStateManager& mgr) {
|
||||
return;
|
||||
|
||||
zeus::CVector3f attractionPos = GetEnergyAttractionPos(mgr);
|
||||
rstl::reserved_vector<TUniqueId, kMaxEntities> nearCharacters;
|
||||
EntityList nearCharacters;
|
||||
mgr.BuildNearList(nearCharacters, attractionBounds, CMaterialFilter::MakeInclude({EMaterialTypes::Character}),
|
||||
nullptr);
|
||||
|
||||
@@ -1494,7 +1494,7 @@ bool CIceSheegoth::ShouldAttractProjectile(const CGameProjectile& proj, CStateMa
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CIceSheegoth::IsClosestSheegoth(CStateManager& mgr, const rstl::reserved_vector<TUniqueId, kMaxEntities>& nearList,
|
||||
bool CIceSheegoth::IsClosestSheegoth(CStateManager& mgr, const EntityList& nearList,
|
||||
const zeus::CVector3f& projectileOffset) const {
|
||||
zeus::CVector3f diff = projectileOffset - GetTranslation();
|
||||
const float diffMag = diff.magSquared();
|
||||
|
||||
Reference in New Issue
Block a user