- 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]>
43 lines
1.9 KiB
C++
43 lines
1.9 KiB
C++
#include "WoW/Source/DB/Rec/SpellVisualKitModelAttachRec.h"
|
|
#include "Engine/Source/BlizzardCore/SFile2-Core.h"
|
|
|
|
SpellVisualKitModelAttachRec::SpellVisualKitModelAttachRec() {
|
|
}
|
|
|
|
SpellVisualKitModelAttachRec::~SpellVisualKitModelAttachRec() {
|
|
}
|
|
|
|
// VERIFY: 57269c2f auto
|
|
// OFFSET: 0x008B93D0
|
|
const char* SpellVisualKitModelAttachRec::GetFilename() {
|
|
return "DBFilesClient\\SpellVisualKitModelAttach.dbc";
|
|
}
|
|
|
|
bool SpellVisualKitModelAttachRec::Read(SFileImpl* file, const char* stringBuffer) {
|
|
int32_t idRead = SFileReadFile(file, &this->m_id, sizeof(this->m_id), nullptr, nullptr, 0);
|
|
int32_t parentSpellVisualKitIDRead = SFileReadFile(file, &this->m_parentSpellVisualKitID, sizeof(this->m_parentSpellVisualKitID), nullptr, nullptr, 0);
|
|
int32_t spellVisualEffectNameIDRead = SFileReadFile(file, &this->m_spellVisualEffectNameID, sizeof(this->m_spellVisualEffectNameID), nullptr, nullptr, 0);
|
|
int32_t attachmentIDRead = SFileReadFile(file, &this->m_attachmentID, sizeof(this->m_attachmentID), nullptr, nullptr, 0);
|
|
int32_t offsetRead0 = SFileReadFile(file, &this->m_offset[0], sizeof(this->m_offset[0]), nullptr, nullptr, 0);
|
|
int32_t offsetRead1 = SFileReadFile(file, &this->m_offset[1], sizeof(this->m_offset[1]), nullptr, nullptr, 0);
|
|
int32_t offsetRead2 = SFileReadFile(file, &this->m_offset[2], sizeof(this->m_offset[2]), nullptr, nullptr, 0);
|
|
int32_t yawRead = SFileReadFile(file, &this->m_yaw, sizeof(this->m_yaw), nullptr, nullptr, 0);
|
|
int32_t pitchRead = SFileReadFile(file, &this->m_pitch, sizeof(this->m_pitch), nullptr, nullptr, 0);
|
|
int32_t rollRead = SFileReadFile(file, &this->m_roll, sizeof(this->m_roll), nullptr, nullptr, 0);
|
|
|
|
if (!idRead
|
|
| !parentSpellVisualKitIDRead
|
|
| !spellVisualEffectNameIDRead
|
|
| !attachmentIDRead
|
|
| !offsetRead0
|
|
| !offsetRead1
|
|
| !offsetRead2
|
|
| !yawRead
|
|
| !pitchRead
|
|
| !rollRead) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|