EvEmu
0.8.4
11 September 2021
|
#include "ItemDB.h"
Static Public Member Functions | |
static bool | GetItem (uint32 itemID, ItemData &into) |
static bool | DeleteItem (uint32 itemID) |
static void | UpdateLocation (uint32 itemID, uint32 locationID, EVEItemFlags flag) |
static uint32 | NewItem (const ItemData &data) |
static bool | SaveItem (uint32 itemID, const ItemData &data) |
static void | SaveItems (std::vector< Inv::SaveData > &data) |
static void | SaveAttributes (bool isChar, std::vector< Inv::AttrData > &data) |
static void | GetItems (uint16 catID, std::map< uint16, std::string > &typeIDs) |
|
static |
Definition at line 348 of file ItemDB.cpp.
References _log, DBerror::c_str(), codelog, IsStaticMapItem, and sDatabase.
Referenced by Blueprint::CreateItemID(), ProbeItem::Delete(), InventoryItem::Delete(), and InventoryItem::ToVirtual().
Definition at line 32 of file ItemDB.cpp.
References _log, DBerror::c_str(), codelog, ItemData::contraband, ItemData::customInfo, DBQueryResult::error, ItemData::flag, DBResultRow::GetDouble(), DBResultRow::GetInt(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), IsAsteroidID, IsCelestialID, IsCharacterID, IsConstellationID, DBResultRow::IsNull(), IsOfficeID, IsRegionID, IsStargateID, ItemData::locationID, ItemData::name, ItemData::ownerID, ItemData::position, ItemData::quantity, sDatabase, sDataMgr, ItemData::singleton, ItemData::typeID, Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.
Referenced by InventoryItem::_Load().
Definition at line 367 of file ItemDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), and sDatabase.
Referenced by ConsoleCommand::FxProc().
Definition at line 183 of file ItemDB.cpp.
References DBerror::c_str(), codelog, ItemData::contraband, ItemData::customInfo, ItemData::flag, Ga::GaVec3::isInf(), Ga::GaVec3::isNaN(), ItemData::locationID, ItemData::name, ItemData::ownerID, ItemData::position, ItemData::quantity, sDatabase, ItemData::singleton, ItemData::typeID, Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.
Referenced by InventoryItem::CreateItemID().
|
static |
Definition at line 310 of file ItemDB.cpp.
References _log, DBerror::c_str(), itemID(), and sDatabase.
Referenced by AttributeMap::Save().
Definition at line 219 of file ItemDB.cpp.
References _log, DBerror::c_str(), codelog, ItemData::customInfo, ItemData::flag, Ga::GaVec3::isNaN(), IsStaticMapItem, itemID(), ItemData::locationID, ItemData::name, ItemData::ownerID, ItemData::position, ItemData::quantity, sDatabase, ItemData::singleton, Ga::GaVec3::x, Ga::GaVec3::y, and Ga::GaVec3::z.
Referenced by InventoryItem::SaveItem().
|
static |
Definition at line 264 of file ItemDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Referenced by ItemFactory::SaveItems(), and Inventory::Unload().
|
static |
Definition at line 212 of file ItemDB.cpp.
References sDatabase.
Referenced by InventoryItem::Move(), InventoryItem::Relocate(), InventoryItem::SetFlag(), and InventoryItem::UpdateLocation().