mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
Core/Vmaps: Expose loaded gameobject collision models in RegularGrid2D
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user