From 6040f8eb3167ee84cac9de5e6e1a97aeb6a8c569 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 28 Jun 2020 12:26:39 +0200 Subject: Core/Collision: Port new parts for retrieving area/liquid data from gameobjects added when porting 42f9deb21ec68e169f7ed1c8cf14092f144b22da to 3.3.5 --- src/common/Collision/DynamicTree.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common/Collision/DynamicTree.h') 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&); -- cgit v1.2.3