AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MapUpdateRequest Class Reference
Inheritance diagram for MapUpdateRequest:
UpdateRequest

Public Member Functions

 MapUpdateRequest (Map &m, MapUpdater &u, uint32 d, uint32 sd)
 
void call () override
 
- Public Member Functions inherited from UpdateRequest
 UpdateRequest ()=default
 
virtual ~UpdateRequest ()=default
 
virtual void call ()=0
 

Private Attributes

Mapm_map
 
MapUpdaterm_updater
 
uint32 m_diff
 
uint32 s_diff
 

Detailed Description

Constructor & Destructor Documentation

◆ MapUpdateRequest()

MapUpdateRequest::MapUpdateRequest ( Map m,
MapUpdater u,
uint32  d,
uint32  sd 
)
inline
37 : m_map(m), m_updater(u), m_diff(d), s_diff(sd)
38 {
39 }
Map & m_map
Definition: MapUpdater.cpp:49
uint32 m_diff
Definition: MapUpdater.cpp:51
uint32 s_diff
Definition: MapUpdater.cpp:52
MapUpdater & m_updater
Definition: MapUpdater.cpp:50

Member Function Documentation

◆ call()

void MapUpdateRequest::call ( )
inlineoverridevirtual

Implements UpdateRequest.

42 {
43 METRIC_TIMER("map_update_time_diff", METRIC_TAG("map_id", std::to_string(m_map.GetId())));
46 }
#define METRIC_TAG(name, value)
Definition: Metric.h:159
#define METRIC_TIMER(category,...)
Definition: Metric.h:202
virtual void Update(const uint32, const uint32, bool thread=true)
Definition: Map.cpp:739
uint32 GetId() const
Definition: Map.h:377
void update_finished()
Definition: MapUpdater.cpp:133

References Map::GetId(), m_diff, m_map, m_updater, METRIC_TAG, METRIC_TIMER, s_diff, Map::Update(), and MapUpdater::update_finished().

Member Data Documentation

◆ m_diff

uint32 MapUpdateRequest::m_diff
private

Referenced by call().

◆ m_map

Map& MapUpdateRequest::m_map
private

Referenced by call().

◆ m_updater

MapUpdater& MapUpdateRequest::m_updater
private

Referenced by call().

◆ s_diff

uint32 MapUpdateRequest::s_diff
private

Referenced by call().