AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VMAP::LocationInfoCallback Class Reference

Public Member Functions

 LocationInfoCallback (ModelInstance *val, LocationInfo &info)
 
void operator() (const Vector3 &point, uint32 entry)
 

Public Attributes

ModelInstanceprims
 
LocationInfolocInfo
 
bool result
 

Detailed Description

Constructor & Destructor Documentation

◆ LocationInfoCallback()

VMAP::LocationInfoCallback::LocationInfoCallback ( ModelInstance val,
LocationInfo info 
)
inline
73: prims(val), locInfo(info), result(false) {}
ModelInstance * prims
Definition: MapTree.cpp:85
bool result
Definition: MapTree.cpp:87
LocationInfo & locInfo
Definition: MapTree.cpp:86

Member Function Documentation

◆ operator()()

void VMAP::LocationInfoCallback::operator() ( const Vector3 &  point,
uint32  entry 
)
inline
75 {
76#if defined(VMAP_DEBUG)
77 LOG_DEBUG("maps", "LocationInfoCallback: trying to intersect '{}'", prims[entry].name);
78#endif
79 if (prims[entry].GetLocationInfo(point, locInfo))
80 {
81 result = true;
82 }
83 }
#define LOG_DEBUG(filterType__,...)
Definition: Log.h:169

References locInfo, LOG_DEBUG, prims, and result.

Member Data Documentation

◆ locInfo

LocationInfo& VMAP::LocationInfoCallback::locInfo

Referenced by operator()().

◆ prims

ModelInstance* VMAP::LocationInfoCallback::prims

Referenced by operator()().

◆ result

bool VMAP::LocationInfoCallback::result