// DO NOT EDIT: generated by whoa-autocode #include "db/rec/DurabilityCostsRec.hpp" #include "db/Locale.hpp" #include "util/SFile.hpp" const char* DurabilityCostsRec::GetFilename() { return "DBFilesClient\\DurabilityCosts.dbc"; } uint32_t DurabilityCostsRec::GetNumColumns() { return 30; } uint32_t DurabilityCostsRec::GetRowSize() { return 120; } bool DurabilityCostsRec::NeedIDAssigned() { return false; } int32_t DurabilityCostsRec::GetID() { return this->m_ID; } void DurabilityCostsRec::SetID(int32_t id) { this->m_ID = id; } bool DurabilityCostsRec::Read(SFile* f, const char* stringBuffer) { if ( !SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[0], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[1], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[2], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[3], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[4], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[5], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[6], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[7], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[8], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[9], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[10], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[11], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[12], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[13], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[14], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[15], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[16], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[17], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[18], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[19], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_weaponSubClassCost[20], sizeof(m_weaponSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[0], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[1], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[2], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[3], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[4], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[5], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[6], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) || !SFile::Read(f, &this->m_armorSubClassCost[7], sizeof(m_armorSubClassCost[0]), nullptr, nullptr, nullptr) ) { return false; } return true; }