EvEmu
0.8.4
11 September 2021
|
#include "ShipDB.h"
Public Member Functions | |
PyRep * | GetInsuranceByShipID (uint32 shipID) |
PyRep * | GetInsuranceByOwnerID (uint32 ownerID) |
bool | InsertInsuranceByShipID (uint32 shipID, std::string name, uint32 ownerID, float level, double payOut, bool isCorpItem=false, uint8 numWeeks=12) |
float | GetShipInsurancePayout (uint32 shipID) |
bool | IsShipInsured (uint32 shipID) |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
Static Public Member Functions | |
static void | DeleteInsuranceByShipID (uint32 shipID) |
static void | LoadWeaponGroups (uint32 shipID, DBQueryResult &res) |
static void | SaveWeaponGroups (uint32 shipID, std::multimap< uint32, uint32 > &data) |
static void | ClearWeaponGroups (uint32 shipID) |
![]() | |
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) |
|
static |
Definition at line 92 of file ShipDB.cpp.
References sDatabase.
Referenced by ShipItem::UnlinkAllWeapons().
|
static |
Definition at line 65 of file ShipDB.cpp.
References sDatabase.
Referenced by ShipSE::PayInsurance(), and TradeService::TransferContainerContents().
Definition at line 46 of file ShipDB.cpp.
References DBResultToRowset(), and sDatabase.
Definition at line 32 of file ShipDB.cpp.
References DBRowToRow(), DBQueryResult::GetRow(), PyStatic, and sDatabase.
float ShipDB::GetShipInsurancePayout | ( | uint32 | shipID | ) |
Definition at line 70 of file ShipDB.cpp.
References DBResultRow::GetFloat(), DBQueryResult::GetRow(), and sDatabase.
Referenced by ShipSE::PayInsurance().
bool ShipDB::InsertInsuranceByShipID | ( | uint32 | shipID, |
std::string | name, | ||
uint32 | ownerID, | ||
float | level, | ||
double | payOut, | ||
bool | isCorpItem = false , |
||
uint8 | numWeeks = 12 |
||
) |
Definition at line 56 of file ShipDB.cpp.
References DBerror::c_str(), GetFileTimeNow(), sDatabase, and EvE::Time::Week.
bool ShipDB::IsShipInsured | ( | uint32 | shipID | ) |
Definition at line 81 of file ShipDB.cpp.
References DBQueryResult::GetRow(), and sDatabase.
|
static |
Definition at line 98 of file ShipDB.cpp.
References sDatabase.
Referenced by ShipItem::LoadWeaponGroups().
Definition at line 103 of file ShipDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Referenced by ShipItem::SaveWeaponGroups().