EvEmu
0.8.4
11 September 2021
|
#include "SystemDB.h"
Public Member Functions | |
PyObject * | ListFactions () |
void | GetBelts (uint32 systemID, std::vector< DBGPointEntity > &beltIDs, uint8 &total) |
void | GetMoons (uint32 systemID, std::vector< DBGPointEntity > &moonIDs, uint8 &total) |
void | GetPlanets (uint32 systemID, std::vector< DBGPointEntity > &planetIDs, uint8 &total) |
double | GetItemTypeRadius (uint32 typeID) |
double | GetCelestialRadius (uint32 itemID) |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
Static Public Member Functions | |
static PyObject * | ListJumps (uint32) |
static PyPackedRow * | GetSolarSystem (uint32 ssid) |
static void | GetGates (uint32 systemID, std::vector< DBGPointEntity > &gateIDs) |
static bool | GetWrecksToTypes (DBQueryResult &res) |
static void | GetLootGroups (DBQueryResult &res) |
static void | GetLootGroupTypes (DBQueryResult &res) |
static uint32 | GetObjectLocationID (uint32 itemID) |
static GPoint | GetSolarSystemPosition (uint32 systemID) |
static bool | LoadSystemStaticEntities (uint32 systemID, std::vector< DBSystemEntity > &into) |
static bool | LoadSystemDynamicEntities (uint32 systemID, std::vector< DBSystemDynamicEntity > &into) |
static bool | LoadPlayerDynamicEntities (uint32 systemID, std::vector< DBSystemDynamicEntity > &into) |
![]() | |
static bool | GetAccountInformation (CryptoChallengePacket &ccp, AccountData &aData, std::string &failMsg) |
static bool | UpdateAccountHash (const char *username, std::string &hash) |
static bool | IncrementLoginCount (uint32 accountID) |
static void | UpdatePassword (uint32 accountID, const char *pass) |
static void | SaveKillOrLoss (CharKillData &data) |
static bool | GetConstant (const char *name, uint32 &into) |
static void | SetServerOnlineStatus (bool online=false) |
static void | SetCharacterOnlineStatus (uint32 char_id, bool online=false) |
static void | SetAccountOnlineStatus (uint32 accountID, bool online=false) |
static void | SetAccountBanStatus (uint32 accountID, bool banned=false) |
static void | SaveServerStats (double threads, float rss, float vm, float user, float kernel, uint32 items, uint32 bubbles) |
static uint32 | SetClientSeed () |
static PyRep * | LookupChars (const char *match, bool exact=false) |
static PyRep * | LookupOwners (const char *match, bool exact=false) |
static PyRep * | LookupCorporations (const std::string &) |
static PyRep * | LookupFactions (const std::string &) |
static PyRep * | LookupCorporationTickers (const std::string &) |
static PyRep * | LookupStations (const std::string &) |
static PyRep * | LookupKnownLocationsByGroup (const std::string &, uint32) |
static PyRep * | PrimeOwners (std::vector< int32 > &itemIDs) |
static bool | ValidateAccountName (CryptoChallengePacket &ccp, std::string &failMsg) |
static void | GetCorpHangarNames (uint32 corpID, std::map< uint8, std::string > &hangarNames) |
Additional Inherited Members | |
![]() | |
void | ProcessStringChange (const char *key, const std::string &oldValue, std::string newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessRealChange (const char *key, double oldValue, double newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessIntChange (const char *key, uint32 oldValue, uint32 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessLongChange (const char *key, int64 oldValue, int64 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
![]() | |
static uint32 | CreateNewAccount (const char *login, const char *pass, const char *passHash, int64 role) |
Definition at line 32 of file SystemDB.h.
void SystemDB::GetBelts | ( | uint32 | systemID, |
std::vector< DBGPointEntity > & | beltIDs, | ||
uint8 & | total | ||
) |
Definition at line 381 of file SystemDB.cpp.
References DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), DBGPointEntity::idx, DBGPointEntity::itemID, DBGPointEntity::position, DBGPointEntity::radius, and sDatabase.
double SystemDB::GetCelestialRadius | ( | uint32 | itemID | ) |
Definition at line 301 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), and sDatabase.
|
static |
Definition at line 404 of file SystemDB.cpp.
References DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), DBGPointEntity::idx, DBGPointEntity::itemID, DBGPointEntity::position, DBGPointEntity::radius, and sDatabase.
double SystemDB::GetItemTypeRadius | ( | uint32 | typeID | ) |
Definition at line 288 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), and sDatabase.
|
static |
Definition at line 322 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 330 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
void SystemDB::GetMoons | ( | uint32 | systemID, |
std::vector< DBGPointEntity > & | moonIDs, | ||
uint8 & | total | ||
) |
Definition at line 359 of file SystemDB.cpp.
References DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), DBGPointEntity::idx, DBGPointEntity::itemID, DBGPointEntity::position, DBGPointEntity::radius, and sDatabase.
Referenced by SystemGPoint::GetMoons(), SystemGPoint::GetRandMoon(), and SystemGPoint::GetRandPointOnMoon().
Definition at line 275 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
void SystemDB::GetPlanets | ( | uint32 | systemID, |
std::vector< DBGPointEntity > & | planetIDs, | ||
uint8 & | total | ||
) |
Definition at line 338 of file SystemDB.cpp.
References DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), DBGPointEntity::idx, DBGPointEntity::itemID, DBGPointEntity::position, DBGPointEntity::radius, and sDatabase.
Referenced by SystemGPoint::Get2RandPlanets(), SystemGPoint::Get3RandPlanets(), SystemGPoint::GetAnomalyPoint(), SystemGPoint::GetPlanets(), SystemGPoint::GetRandPlanet(), and SystemGPoint::GetRandPointOnPlanet().
|
static |
Definition at line 58 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBRowToPackedRow(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
Definition at line 89 of file SystemDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), NULL_ORIGIN(), and sDatabase.
|
static |
Definition at line 314 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
PyObject * SystemDB::ListFactions | ( | ) |
Definition at line 31 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, and sDatabase.
Definition at line 41 of file SystemDB.cpp.
References DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, and sDatabase.
Referenced by StargateSE::LoadExtras().
|
static |
Definition at line 208 of file SystemDB.cpp.
References _log, DBSystemDynamicEntity::allianceID, DBerror::c_str(), DBSystemDynamicEntity::categoryID, Scanning::Group::Celestial, EVEDB::invCategories::Charge, codelog, DBSystemDynamicEntity::corporationID, EVEDB::invCategories::Deployable, EVEDB::invCategories::Drone, EVEDB::invCategories::Entity, DBQueryResult::error, DBSystemDynamicEntity::factionID, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), DBSystemDynamicEntity::groupID, IsCharacterID, IsCorp, DBSystemDynamicEntity::itemID, DBSystemDynamicEntity::itemName, DBSystemDynamicEntity::ownerID, DBSystemDynamicEntity::position, sDatabase, EVEDB::invCategories::StructureUpgrade, and DBSystemDynamicEntity::typeID.
Referenced by SystemManager::LoadPlayerDynamics().
|
static |
Definition at line 137 of file SystemDB.cpp.
References _log, EVEDB::invCategories::_System, DBSystemDynamicEntity::allianceID, EVEDB::invCategories::Asteroid, DBerror::c_str(), DBSystemDynamicEntity::categoryID, codelog, DBSystemDynamicEntity::corporationID, DBQueryResult::error, DBSystemDynamicEntity::factionID, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), DBSystemDynamicEntity::groupID, IsCharacterID, IsCorp, DBSystemDynamicEntity::itemID, DBSystemDynamicEntity::itemName, EVEDB::invCategories::Orbitals, DBSystemDynamicEntity::ownerID, DBSystemDynamicEntity::planetID, DBSystemDynamicEntity::position, sDatabase, EVEDB::invCategories::SovereigntyStructure, and DBSystemDynamicEntity::typeID.
Referenced by SystemManager::LoadSystemDynamics().
|
static |
Definition at line 110 of file SystemDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), DBSystemEntity::groupID, DBSystemEntity::itemID, DBSystemEntity::radius, sDatabase, and DBSystemEntity::typeID.
Referenced by SystemManager::LoadSystemStatics().