34 if (store && store->
HasRecord(record.RecordID))
45 dbReply.
Data.
append(optionalData.Data.data(), optionalData.Data.size());
64 for (
auto const& [pushId, push] :
sDB2Manager.GetHotfixData())
69 availableHotfixes.
Hotfixes.insert(push.Records.front().ID);
90 hotfixData.
Record = hotfixRecord;
99 if (std::vector<DB2Manager::HotfixOptionalData>
const* optionalDataEntries =
sDB2Manager.GetHotfixOptionalData(hotfixRecord.TableHash, hotfixRecord.RecordID,
GetSessionDbcLocale()))
104 hotfixQueryResponse.
HotfixContent.
append(optionalData.Data.data(), optionalData.Data.size());
110 else if (std::vector<uint8>
const* blobData =
sDB2Manager.GetHotfixBlobData(hotfixRecord.TableHash, hotfixRecord.RecordID,
GetSessionDbcLocale()))
112 hotfixData.
Size = blobData->size();
#define TC_LOG_TRACE(filterType__, message__,...)
std::map< int32, HotfixPush > HotfixContainer
Interface class for common access.
void WriteRecord(uint32 id, LocaleConstant locale, ByteBuffer &buffer) const
bool HasRecord(uint32 id) const
std::set< DB2Manager::HotfixId > Hotfixes
WorldPacket const * Write() override
int32 VirtualRealmAddress
std::vector< DBQueryRecord > Queries
DB2Manager::HotfixRecord::Status Status
WorldPacket const * Write() override
WorldPacket const * Write() override
std::vector< HotfixData > Hotfixes
std::vector< int32 > Hotfixes
void HandleDBQueryBulk(WorldPackets::Hotfix::DBQueryBulk &dbQuery)
LocaleConstant GetSessionDbcLocale() const
std::string GetPlayerInfo() const
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleHotfixRequest(WorldPackets::Hotfix::HotfixRequest &hotfixQuery)
void SendAvailableHotfixes()
uint32 GetVirtualRealmAddress()
auto MapGetValuePtr(M &map, typename M::key_type const &key)
DB2Manager::HotfixRecord Record