- WowClientDB.h: WowClientDB_Base, IDatabase<T>, WowClientDB_Common<T> (Load), WowClientDB<T> and WowClientDB_RLE<T> (Spell, ItemDisplayInfo, Light*Band) with OFFSET lists for every 12340 instance; WowClientDB.cpp: base dtor, RLE row codec. - Records are classes (0.5.3 decorations) with out-of-line ctor/dtor/GetFilename/Read in DB/Rec/*.cpp, static s_numColumns/s_rowSize/s_generatedID; ID field m_id. - DBClient.cpp: 239 table globals, StaticDBLoadAll, ClientDBInitialize (6 callees declared, tracked); Startup_Strings in Client.cpp, VideoHardware in Hardware.cpp. - IDB synced (410 names, snapshot Wow.exe.pre_clientdb_20260926.idb). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
39 lines
1.6 KiB
C++
39 lines
1.6 KiB
C++
#include "WoW/Source/DB/Rec/LfgDungeonExpansionRec.h"
|
|
#include "Engine/Source/BlizzardCore/SFile2-Core.h"
|
|
|
|
LfgDungeonExpansionRec::LfgDungeonExpansionRec() {
|
|
}
|
|
|
|
LfgDungeonExpansionRec::~LfgDungeonExpansionRec() {
|
|
}
|
|
|
|
// VERIFY: 979ed05f auto
|
|
// OFFSET: 0x008B1CE0
|
|
const char* LfgDungeonExpansionRec::GetFilename() {
|
|
return "DBFilesClient\\LfgDungeonExpansion.dbc";
|
|
}
|
|
|
|
bool LfgDungeonExpansionRec::Read(SFileImpl* file, const char* stringBuffer) {
|
|
int32_t idRead = SFileReadFile(file, &this->m_id, sizeof(this->m_id), nullptr, nullptr, 0);
|
|
int32_t lfgIDRead = SFileReadFile(file, &this->m_lfgID, sizeof(this->m_lfgID), nullptr, nullptr, 0);
|
|
int32_t expansionLevelRead = SFileReadFile(file, &this->m_expansionLevel, sizeof(this->m_expansionLevel), nullptr, nullptr, 0);
|
|
int32_t randomIDRead = SFileReadFile(file, &this->m_randomID, sizeof(this->m_randomID), nullptr, nullptr, 0);
|
|
int32_t hardLevelMinRead = SFileReadFile(file, &this->m_hardLevelMin, sizeof(this->m_hardLevelMin), nullptr, nullptr, 0);
|
|
int32_t hardLevelMaxRead = SFileReadFile(file, &this->m_hardLevelMax, sizeof(this->m_hardLevelMax), nullptr, nullptr, 0);
|
|
int32_t targetLevelMinRead = SFileReadFile(file, &this->m_targetLevelMin, sizeof(this->m_targetLevelMin), nullptr, nullptr, 0);
|
|
int32_t targetLevelMaxRead = SFileReadFile(file, &this->m_targetLevelMax, sizeof(this->m_targetLevelMax), nullptr, nullptr, 0);
|
|
|
|
if (!idRead
|
|
| !lfgIDRead
|
|
| !expansionLevelRead
|
|
| !randomIDRead
|
|
| !hardLevelMinRead
|
|
| !hardLevelMaxRead
|
|
| !targetLevelMinRead
|
|
| !targetLevelMaxRead) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|