thunderbrew/src/db/rec/DurabilityCostsRec.cpp
VDm 957a4c7e2f
feat(glue): add realm and character handling (#7)
* fix(build): make project compilable

* feat(glue): update Character Selection screen to support switching

* fix(ui): fix CSimpleFontString::GetHeight() to use proper method

* feat(db): add static database classes from whoa-autocode

* feat(ui): use class and area IDs for Character Selection

* chore(db): update ItemRandomPropertiesRec

* feat(glue): update CCharacterSelection methods

* chore(db): uncomment DB records

* feat(glue): implement character deletion

* feat(gx): update supported text tags in GxuDetermineQuotedCode

* fix(ui): fix CSimpleFontString to use the FixedColor flag only if the string does not contain color tags

* feat(net): implement GrunLogin::LogOff

* feat(net): implement NetClient::Disconnect

* feat(login): implement trimming of realm name in LoginResponse::HandleRealmData

* feat(net): implement proper disconnection from login and realm servers

* feat(net): implement PING/PONG messages

* feat(net): add NetClient::Destroy method

* feat(net): implement ClientServices::GetRealmList (second request of Realm List)

* feat(glue): implement CGlueMgr::PollRealmList

* feat(glue): implement CGlueMgr::PollCreateCharacter

* chore(glue): add skeleton of CCharacterComponent class

* fix(build): fix build using latest features

* fix(glue): kill gotos in CGlueMgr::NetDisconnectHandler

* fix(build): include SDL3

---------

Co-authored-by: superp00t <superp00t@tutanota.com>
2025-04-16 17:32:37 -04:00

68 lines
4.1 KiB
C++

// 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;
}