- 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]>
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
#include "WoW/Source/DB/Rec/CinematicCameraRec.h"
|
|
#include "Engine/Source/BlizzardCore/SFile2-Core.h"
|
|
|
|
CinematicCameraRec::CinematicCameraRec() {
|
|
}
|
|
|
|
CinematicCameraRec::~CinematicCameraRec() {
|
|
}
|
|
|
|
// VERIFY: dd2eea75 auto
|
|
// OFFSET: 0x008ACE60
|
|
const char* CinematicCameraRec::GetFilename() {
|
|
return "DBFilesClient\\CinematicCamera.dbc";
|
|
}
|
|
|
|
// VERIFY: 1270de90 manual
|
|
// OFFSET: 0x008ACE70
|
|
bool CinematicCameraRec::Read(SFileImpl* file, const char* stringBuffer) {
|
|
uint32_t modelOffset;
|
|
|
|
int32_t idRead = SFileReadFile(file, &this->m_id, sizeof(this->m_id), nullptr, nullptr, 0);
|
|
int32_t modelRead = SFileReadFile(file, &modelOffset, sizeof(modelOffset), nullptr, nullptr, 0);
|
|
int32_t soundIDRead = SFileReadFile(file, &this->m_soundID, sizeof(this->m_soundID), nullptr, nullptr, 0);
|
|
int32_t originRead0 = SFileReadFile(file, &this->m_origin[0], sizeof(this->m_origin[0]), nullptr, nullptr, 0);
|
|
int32_t originRead1 = SFileReadFile(file, &this->m_origin[1], sizeof(this->m_origin[1]), nullptr, nullptr, 0);
|
|
int32_t originRead2 = SFileReadFile(file, &this->m_origin[2], sizeof(this->m_origin[2]), nullptr, nullptr, 0);
|
|
int32_t originFacingRead = SFileReadFile(file, &this->m_originFacing, sizeof(this->m_originFacing), nullptr, nullptr, 0);
|
|
|
|
if (!idRead
|
|
| !modelRead
|
|
| !soundIDRead
|
|
| !originRead0
|
|
| !originRead1
|
|
| !originRead2
|
|
| !originFacingRead) {
|
|
return false;
|
|
}
|
|
|
|
if (stringBuffer) {
|
|
this->m_model = &stringBuffer[modelOffset];
|
|
} else {
|
|
this->m_model = "";
|
|
}
|
|
|
|
return true;
|
|
}
|