mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-29 15:26:04 +03:00
* 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>
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
// DO NOT EDIT: generated by whoa-autocode
|
|
#include "db/rec/AnimationDataRec.hpp"
|
|
#include "db/Locale.hpp"
|
|
#include "util/SFile.hpp"
|
|
|
|
const char* AnimationDataRec::GetFilename() {
|
|
return "DBFilesClient\\AnimationData.dbc";
|
|
}
|
|
|
|
uint32_t AnimationDataRec::GetNumColumns() {
|
|
return 8;
|
|
}
|
|
|
|
uint32_t AnimationDataRec::GetRowSize() {
|
|
return 32;
|
|
}
|
|
|
|
bool AnimationDataRec::NeedIDAssigned() {
|
|
return false;
|
|
}
|
|
|
|
int32_t AnimationDataRec::GetID() {
|
|
return this->m_ID;
|
|
}
|
|
|
|
void AnimationDataRec::SetID(int32_t id) {
|
|
this->m_ID = id;
|
|
}
|
|
|
|
bool AnimationDataRec::Read(SFile* f, const char* stringBuffer) {
|
|
uint32_t nameOfs;
|
|
|
|
if (
|
|
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &nameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_weaponflags, sizeof(this->m_weaponflags), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_bodyflags, sizeof(this->m_bodyflags), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_fallback, sizeof(this->m_fallback), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_behaviorID, sizeof(this->m_behaviorID), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_behaviorTier, sizeof(this->m_behaviorTier), nullptr, nullptr, nullptr)
|
|
) {
|
|
return false;
|
|
}
|
|
|
|
if (stringBuffer) {
|
|
this->m_name = &stringBuffer[nameOfs];
|
|
} else {
|
|
this->m_name = "";
|
|
}
|
|
|
|
return true;
|
|
}
|