thunderbrew/src/db/rec/SpellVisualKitRec.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

76 lines
4.6 KiB
C++

// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/SpellVisualKitRec.hpp"
#include "db/Locale.hpp"
#include "util/SFile.hpp"
const char* SpellVisualKitRec::GetFilename() {
return "DBFilesClient\\SpellVisualKit.dbc";
}
uint32_t SpellVisualKitRec::GetNumColumns() {
return 38;
}
uint32_t SpellVisualKitRec::GetRowSize() {
return 152;
}
bool SpellVisualKitRec::NeedIDAssigned() {
return false;
}
int32_t SpellVisualKitRec::GetID() {
return this->m_ID;
}
void SpellVisualKitRec::SetID(int32_t id) {
this->m_ID = id;
}
bool SpellVisualKitRec::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_startAnimID, sizeof(this->m_startAnimID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animID, sizeof(this->m_animID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_headEffect, sizeof(this->m_headEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_chestEffect, sizeof(this->m_chestEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_baseEffect, sizeof(this->m_baseEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_leftHandEffect, sizeof(this->m_leftHandEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_rightHandEffect, sizeof(this->m_rightHandEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_breathEffect, sizeof(this->m_breathEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_leftWeaponEffect, sizeof(this->m_leftWeaponEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_rightWeaponEffect, sizeof(this->m_rightWeaponEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_specialEffect[0], sizeof(m_specialEffect[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_specialEffect[1], sizeof(m_specialEffect[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_specialEffect[2], sizeof(m_specialEffect[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_worldEffect, sizeof(this->m_worldEffect), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_soundID, sizeof(this->m_soundID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_shakeID, sizeof(this->m_shakeID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charProc[0], sizeof(m_charProc[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charProc[1], sizeof(m_charProc[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charProc[2], sizeof(m_charProc[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charProc[3], sizeof(m_charProc[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamZero[0], sizeof(m_charParamZero[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamZero[1], sizeof(m_charParamZero[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamZero[2], sizeof(m_charParamZero[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamZero[3], sizeof(m_charParamZero[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamOne[0], sizeof(m_charParamOne[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamOne[1], sizeof(m_charParamOne[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamOne[2], sizeof(m_charParamOne[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamOne[3], sizeof(m_charParamOne[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamTwo[0], sizeof(m_charParamTwo[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamTwo[1], sizeof(m_charParamTwo[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamTwo[2], sizeof(m_charParamTwo[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamTwo[3], sizeof(m_charParamTwo[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamThree[0], sizeof(m_charParamThree[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamThree[1], sizeof(m_charParamThree[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamThree[2], sizeof(m_charParamThree[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_charParamThree[3], sizeof(m_charParamThree[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}