diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-06-28 12:26:39 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-06-28 12:26:39 +0200 |
commit | 6040f8eb3167ee84cac9de5e6e1a97aeb6a8c569 (patch) | |
tree | a9002f771fa0bb64c555b56341a412c728a629f0 /src/common/Collision/DynamicTree.h | |
parent | 623413d08886c74c5a72b55479136b62793f080a (diff) |
Core/Collision: Port new parts for retrieving area/liquid data from gameobjects added when porting 42f9deb21ec68e169f7ed1c8cf14092f144b22da to 3.3.5
Diffstat (limited to 'src/common/Collision/DynamicTree.h')
-rw-r--r-- | src/common/Collision/DynamicTree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/Collision/DynamicTree.h b/src/common/Collision/DynamicTree.h index 75cbf8466f4..5581702a504 100644 --- a/src/common/Collision/DynamicTree.h +++ b/src/common/Collision/DynamicTree.h @@ -31,6 +31,11 @@ class GameObjectModel; class PhaseShift; struct DynTreeImpl; +namespace VMAP +{ + struct AreaAndLiquidData; +} + class TC_COMMON_API DynamicMapTree { DynTreeImpl *impl; @@ -46,6 +51,7 @@ public: float getHeight(float x, float y, float z, float maxSearchDist, PhaseShift const& phaseShift) const; bool getAreaInfo(float x, float y, float& z, PhaseShift const& phaseShift, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const; + void getAreaAndLiquidData(float x, float y, float z, PhaseShift const& phaseShift, uint8 reqLiquidType, VMAP::AreaAndLiquidData& data) const; void insert(const GameObjectModel&); void remove(const GameObjectModel&); |