#include "MapConnections.h"
Definition at line 16 of file MapConnections.h.
void MapCon::PopulateConnections |
( |
| ) |
|
|
static |
Definition at line 20 of file MapConnections.cpp.
References Map::Jumptype::Constellation, DBQueryResult::GetRow(), GetTimeMSeconds(), DBResultRow::GetUInt(), Map::Jumptype::Region, sDatabase, sLog, and Map::Jumptype::System.
22 sLog.Warning(
"PopulateConnections()",
"Populating mapConnections.");
26 uint32 fromreg = 0, fromcon = 0, tocon = 0, toreg = 0;
32 while ( count < loops ) {
33 sDatabase.RunQuery(res,
"SELECT fromreg, fromcon, tocon, toreg FROM mapConnections WHERE AI = %u", count );
41 if (fromreg != toreg) {
43 }
else if (fromcon != tocon) {
49 sDatabase.RunQuery(err,
"UPDATE mapConnections SET ctype = %u WHERE AI = %u", ctype, count);
55 sLog.Green(
"PopulateConnections()",
"mapConnections Populated in %.3f ms. Please disable this function.", (
GetTimeMSeconds() -starttime));
uint32 GetUInt(uint32 index) const
bool GetRow(DBResultRow &into)
#define sLog
Evaluates to a NewLog instance.
The documentation for this class was generated from the following files: