Core/Vmaps: Expose loaded gameobject collision models in RegularGrid2D

This commit is contained in:
Shauren
2025-11-06 18:34:58 +01:00
parent a9c752af97
commit 556505d59a
3 changed files with 12 additions and 0 deletions

View File

@@ -280,3 +280,9 @@ bool DynamicMapTree::getAreaAndLiquidData(float x, float y, float z, PhaseShift
}
return false;
}
std::span<GameObjectModel const* const> DynamicMapTree::getModelsInGrid(uint32 gx, uint32 gy) const
{
// convert from map tile X/Y to RegularGrid internal representation
return impl->getObjects(63 - int32(gx), 63 - int32(gy));
}