EvEmu
0.8.4
11 September 2021
|
#include "CommandDB.h"
Public Member Functions | |
bool | ItemSearch (const char *query, std::map< uint32, std::string > &into) |
bool | ItemSearch (uint32 typeID, uint32 &actualTypeID, std::string &actualTypeName, uint32 &actualGroupID, uint32 &actualCategoryID, double &actualRadius) |
int | GetAttributeID (const char *attributeName) |
int | GetAccountID (std::string name) |
bool | FullSkillList (std::vector< uint32 > &skillList) |
uint32_t | GetStation (const char *name) |
uint32_t | GetSolarSystem (const char *name) |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
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 30 of file CommandDB.h.
bool CommandDB::FullSkillList | ( | std::vector< uint32 > & | skillList | ) |
Definition at line 213 of file CommandDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), and sDatabase.
Referenced by Command_giveallskills().
int CommandDB::GetAccountID | ( | std::string | name | ) |
Definition at line 193 of file CommandDB.cpp.
References DBResultRow::GetInt(), DBQueryResult::GetRow(), sDatabase, and sLog.
Referenced by Command_unban().
int CommandDB::GetAttributeID | ( | const char * | attributeName | ) |
Definition at line 163 of file CommandDB.cpp.
References codelog, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by Command_dogma().
uint32_t CommandDB::GetSolarSystem | ( | const char * | name | ) |
Definition at line 32 of file CommandDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by Command_tr().
uint32_t CommandDB::GetStation | ( | const char * | name | ) |
Definition at line 60 of file CommandDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by Command_tr().
bool CommandDB::ItemSearch | ( | const char * | query, |
std::map< uint32, std::string > & | into | ||
) |
Definition at line 89 of file CommandDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), and sDatabase.
Referenced by Command_search(), Command_spawn(), Command_spawnn(), and generic_createitem().
bool CommandDB::ItemSearch | ( | uint32 | typeID, |
uint32 & | actualTypeID, | ||
std::string & | actualTypeName, | ||
uint32 & | actualGroupID, | ||
uint32 & | actualCategoryID, | ||
double & | actualRadius | ||
) |
Definition at line 123 of file CommandDB.cpp.
References DBerror::c_str(), DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), sDatabase, and sLog.