![]() |
TrinityCore
|
#include <WaypointManager.h>
Public Member Functions | |
| void | ReloadPath (uint32 id) |
| void | Load () |
| WaypointPath const * | GetPath (uint32 id) const |
Static Public Member Functions | |
| static WaypointMgr * | instance () |
Private Member Functions | |
| WaypointMgr () | |
Private Attributes | |
| std::unordered_map< uint32, WaypointPath > | _waypointStore |
Definition at line 26 of file WaypointManager.h.
|
inlineprivate |
Definition at line 41 of file WaypointManager.h.
| WaypointPath const * WaypointMgr::GetPath | ( | uint32 | id | ) | const |
Definition at line 139 of file WaypointManager.cpp.
References _waypointStore.
|
static |
| void WaypointMgr::Load | ( | ) |
Definition at line 24 of file WaypointManager.cpp.
References _waypointStore, WaypointNode::delay, WaypointNode::eventChance, WaypointNode::eventId, Field::GetFloat(), Field::GetInt16(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), WaypointNode::id, WaypointPath::id, WaypointNode::moveType, WaypointPath::nodes, Trinity::NormalizeMapCoord(), WaypointNode::orientation, TC_LOG_ERROR, TC_LOG_INFO, WAYPOINT_MOVE_TYPE_MAX, WorldDatabase, WaypointNode::x, WaypointNode::y, and WaypointNode::z.
| void WaypointMgr::ReloadPath | ( | uint32 | id | ) |
Definition at line 87 of file WaypointManager.cpp.
References _waypointStore, WaypointNode::delay, WaypointNode::eventChance, WaypointNode::eventId, Field::GetFloat(), Field::GetUInt32(), Field::GetUInt8(), WaypointNode::id, WaypointPath::id, WaypointNode::moveType, WaypointPath::nodes, Trinity::NormalizeMapCoord(), WaypointNode::orientation, PreparedStatementBase::setUInt32(), TC_LOG_ERROR, WAYPOINT_MOVE_TYPE_MAX, WORLD_SEL_WAYPOINT_DATA_BY_ID, WorldDatabase, WaypointNode::x, WaypointNode::y, and WaypointNode::z.
|
private |
Definition at line 43 of file WaypointManager.h.
Referenced by GetPath(), Load(), and ReloadPath().