43 for (WPPath::iterator pathItr = itr->second->begin(); pathItr != itr->second->end(); ++pathItr)
44 delete pathItr->second;
56 TC_LOG_INFO(
"server.loading",
">> Loaded 0 SmartAI Waypoint Paths. DB table `waypoints` is empty.");
68 Field* fields = result->Fetch();
76 if (last_entry != entry)
84 TC_LOG_ERROR(
"sql.sql",
"SmartWaypointMgr::LoadFromDB: Path entry %u, unexpected point id %u, expected %u.", entry,
id, last_id);
92 while (result->NextRow());
94 TC_LOG_INFO(
"server.loading",
">> Loaded %u SmartAI waypoint paths (total %u waypoints) in %u ms", count, total,
GetMSTimeDiffToNow(oldMSTime));
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
float GetFloat() const
Definition: Field.h:222
Class used to access individual fields of database query result.
Definition: Field.h:56
uint32 getMSTime()
Definition: Timer.h:24
WorldDatabaseWorkerPool WorldDatabase
Accessor to the world database.
Definition: DatabaseEnv.cpp:20
Definition: WorldDatabase.h:37
Definition: PreparedStatement.h:74
Definition: SmartScriptMgr.h:31
std::unordered_map< uint32, WPPath * > waypoint_map
Definition: SmartScriptMgr.h:1464
G3D::int16 z
Definition: Vector3int16.h:46
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
std::unordered_map< uint32, WayPoint * > WPPath
Definition: SmartScriptMgr.h:1389
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Definition: Timer.h:42
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
uint32 GetUInt32() const
Definition: Field.h:146
#define TC_LOG_INFO(filterType__,...)
Definition: Log.h:201
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
G3D::int16 x
Definition: Vector2int16.h:37