EvEmu
0.8.4
11 September 2021
|
#include "InventoryDB.h"
Public Member Functions | |
bool | GetCharacterType (uint8 bloodlineID, CharacterTypeData &into) |
bool | GetBloodlineByCharacterType (uint16 characterTypeID, uint8 &bloodlineID) |
bool | GetCharacterType (uint16 characterTypeID, uint8 &bloodlineID, CharacterTypeData &into) |
bool | GetCharacterTypeByBloodline (uint8 bloodlineID, uint16 &characterTypeID, CharacterTypeData &into) |
bool | GetShipType (uint16 shipTypeID, ShipTypeData &into) |
bool | GetItemContents (OwnerData &od, std::vector< uint32 > &into) |
bool | GetItemContents (uint32 itemID, EVEItemFlags flag, std::vector< uint32 > &into) |
bool | GetItemContents (uint32 itemID, EVEItemFlags flag, uint32 ownerID, std::vector< uint32 > &into) |
bool | GetCharacterData (uint32 characterID, CharacterData &into) |
bool | GetCorpData (uint32 characterID, CorpData &into) |
bool | GetCelestialObject (uint32 celestialID, CelestialObjectData &into) |
bool | GetSolarSystem (uint32 solarSystemID, SolarSystemData &into) |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
Static Public Member Functions | |
static bool | GetCharacterTypeByBloodline (uint8 bloodlineID, uint16 &characterTypeID) |
static void | DeleteTrackingCans () |
![]() | |
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 39 of file InventoryDB.h.
|
static |
Definition at line 244 of file InventoryDB.cpp.
References sDatabase.
Referenced by ItemFactory::Initialize(), and ItemFactory::SaveItems().
Obtains ID of bloodline based on character type.
[in] | characterTypeID | ID of character type. |
[out] | bloodlineID | Resulting ID of bloodline. |
Definition at line 109 of file InventoryDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by GetCharacterType().
bool InventoryDB::GetCelestialObject | ( | uint32 | celestialID, |
CelestialObjectData & | into | ||
) |
Definition at line 458 of file InventoryDB.cpp.
References _log, DBerror::c_str(), CelestialObjectData::celestialIndex, codelog, DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), DBResultRow::IsNull(), IsStaticMapItem, CelestialObjectData::orbitIndex, CelestialObjectData::radius, sDatabase, and CelestialObjectData::security.
bool InventoryDB::GetCharacterData | ( | uint32 | characterID, |
CharacterData & | into | ||
) |
Definition at line 251 of file InventoryDB.cpp.
References _log, CharacterData::accountID, CharacterData::ancestryID, CharacterData::aurBalance, CharacterData::balance, CharacterData::bloodlineID, CharacterData::bounty, DBerror::c_str(), CharacterData::capsuleID, CharacterData::careerID, CharacterData::careerSpecialityID, codelog, CharacterData::constellationID, CharacterData::createDateTime, CharacterData::description, DBQueryResult::error, CharacterData::flag, CharacterData::gender, DBResultRow::GetDouble(), DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), IsAgent, DBResultRow::IsNull(), CharacterData::locationID, CharacterData::logonMinutes, CharacterData::name, CharacterData::raceID, CharacterData::regionID, CharacterData::schoolID, sDatabase, CharacterData::securityRating, CharacterData::shipID, CharacterData::skillPoints, CharacterData::solarSystemID, CharacterData::stationID, CharacterData::title, and CharacterData::typeID.
bool InventoryDB::GetCharacterType | ( | uint8 | bloodlineID, |
CharacterTypeData & | into | ||
) |
Loads character type data.
[in] | bloodlineID | Bloodline to be loaded. |
[out] | into | Where loaded data should be stored. |
Definition at line 41 of file InventoryDB.cpp.
References _log, CharacterTypeData::bloodlineName, DBerror::c_str(), CharacterTypeData::charisma, codelog, CharacterTypeData::corporationID, CharacterTypeData::description, DBQueryResult::error, CharacterTypeData::femaleDescription, DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), CharacterTypeData::intelligence, CharacterTypeData::maleDescription, CharacterTypeData::memory, CharacterTypeData::perception, CharacterTypeData::race, sDatabase, CharacterTypeData::shortDescription, CharacterTypeData::shortFemaleDescription, CharacterTypeData::shortMaleDescription, and CharacterTypeData::willpower.
Referenced by GetCharacterType(), and GetCharacterTypeByBloodline().
bool InventoryDB::GetCharacterType | ( | uint16 | characterTypeID, |
uint8 & | bloodlineID, | ||
CharacterTypeData & | into | ||
) |
Obtains bloodline and loads character type data.
[in] | characterTypeID | ID of character type to be loaded. |
[out] | bloodlineID | Resulting bloodline. |
[out] | into | Where character type data should be stored. |
Definition at line 127 of file InventoryDB.cpp.
References GetBloodlineByCharacterType(), and GetCharacterType().
|
static |
Obtains ID of character type based on bloodline.
[in] | bloodlineID | ID of bloodline. |
[out] | characterTypeID | Resulting ID of character type. |
Definition at line 91 of file InventoryDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by ItemFactory::GetCharacterTypeByBloodline(), and GetCharacterTypeByBloodline().
bool InventoryDB::GetCharacterTypeByBloodline | ( | uint8 | bloodlineID, |
uint16 & | characterTypeID, | ||
CharacterTypeData & | into | ||
) |
Obtains ID of character type and loads it.
[in] | bloodlineID | ID of bloodline to be loaded. |
[out] | characterTypeID | Resulting character type. |
[out] | into | Where loaded character type data should be stored. |
Definition at line 133 of file InventoryDB.cpp.
References GetCharacterType(), and GetCharacterTypeByBloodline().
Definition at line 362 of file InventoryDB.cpp.
References _log, CorpData::allianceID, CorpData::baseID, DBerror::c_str(), codelog, CorpData::corpAccountKey, CorpData::corpHQ, CorpData::corporationID, CorpData::corpRole, DBQueryResult::error, DBResultRow::GetDouble(), DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), CorpData::grantableRoles, CorpData::grantableRolesAtBase, CorpData::grantableRolesAtHQ, CorpData::grantableRolesAtOther, IsAgent, DBResultRow::IsNull(), CorpData::name, CorpData::rolesAtAll, CorpData::rolesAtBase, CorpData::rolesAtHQ, CorpData::rolesAtOther, sDatabase, CorpData::startDateTime, CorpData::taxRate, CorpData::ticker, and CorpData::warFactionID.
Definition at line 143 of file InventoryDB.cpp.
References _log, DBerror::c_str(), codelog, OwnerData::corpID, DBQueryResult::error, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), IsCharacterID, IsOfficeID, IsPlayerCorp, OwnerData::locID, maxNPCItem, OwnerData::ownerID, sDatabase, and sDataMgr.
Referenced by Inventory::GetItems().
bool InventoryDB::GetItemContents | ( | uint32 | itemID, |
EVEItemFlags | flag, | ||
std::vector< uint32 > & | into | ||
) |
Definition at line 194 of file InventoryDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), and sDatabase.
bool InventoryDB::GetItemContents | ( | uint32 | itemID, |
EVEItemFlags | flag, | ||
uint32 | ownerID, | ||
std::vector< uint32 > & | into | ||
) |
Definition at line 219 of file InventoryDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBQueryResult::GetRowCount(), and sDatabase.
bool InventoryDB::GetShipType | ( | uint16 | shipTypeID, |
ShipTypeData & | into | ||
) |
Loads ship type data into given container.
[in] | shipTypeID | ID of ship type. |
[in] | into | Container to load data into. |
bool InventoryDB::GetSolarSystem | ( | uint32 | solarSystemID, |
SolarSystemData & | into | ||
) |
Definition at line 515 of file InventoryDB.cpp.
References _log, SolarSystemData::border, DBerror::c_str(), codelog, SolarSystemData::constellation, SolarSystemData::corridor, DBQueryResult::error, SolarSystemData::factionID, SolarSystemData::fringe, DBResultRow::GetBool(), DBResultRow::GetDouble(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), SolarSystemData::hub, SolarSystemData::international, DBResultRow::IsNull(), SolarSystemData::luminosity, SolarSystemData::maxPosition, SolarSystemData::minPosition, SolarSystemData::radius, SolarSystemData::regional, sDatabase, SolarSystemData::security, SolarSystemData::securityClass, and SolarSystemData::sunTypeID.