// DO NOT EDIT: generated by whoa-autocode #include "db/rec/LfgDungeonGroupRec.hpp" #include "db/Locale.hpp" #include "util/SFile.hpp" const char* LfgDungeonGroupRec::GetFilename() { return "DBFilesClient\\LfgDungeonGroup.dbc"; } uint32_t LfgDungeonGroupRec::GetNumColumns() { return 21; } uint32_t LfgDungeonGroupRec::GetRowSize() { return 84; } bool LfgDungeonGroupRec::NeedIDAssigned() { return false; } int32_t LfgDungeonGroupRec::GetID() { return this->m_ID; } void LfgDungeonGroupRec::SetID(int32_t id) { this->m_ID = id; } bool LfgDungeonGroupRec::Read(SFile* f, const char* stringBuffer) { uint32_t nameOfs[16]; uint32_t nameMask; if ( !SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_orderIndex, sizeof(this->m_orderIndex), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_parentGroupID, sizeof(this->m_parentGroupID), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_typeID, sizeof(this->m_typeID), nullptr, nullptr, nullptr) ) { return false; } if (stringBuffer) { this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]]; } else { this->m_name = ""; } return true; }