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>
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
// DO NOT EDIT: generated by whoa-autocode
|
|
#include "db/rec/AreaAssignmentRec.hpp"
|
|
#include "db/Locale.hpp"
|
|
#include "util/SFile.hpp"
|
|
|
|
const char* AreaAssignmentRec::GetFilename() {
|
|
return "DBFilesClient\\AreaAssignment.dbc";
|
|
}
|
|
|
|
uint32_t AreaAssignmentRec::GetNumColumns() {
|
|
return 5;
|
|
}
|
|
|
|
uint32_t AreaAssignmentRec::GetRowSize() {
|
|
return 20;
|
|
}
|
|
|
|
bool AreaAssignmentRec::NeedIDAssigned() {
|
|
return false;
|
|
}
|
|
|
|
int32_t AreaAssignmentRec::GetID() {
|
|
return this->m_ID;
|
|
}
|
|
|
|
void AreaAssignmentRec::SetID(int32_t id) {
|
|
this->m_ID = id;
|
|
}
|
|
|
|
bool AreaAssignmentRec::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_mapID, sizeof(this->m_mapID), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_areaID, sizeof(this->m_areaID), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_chunkX, sizeof(this->m_chunkX), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_chunkY, sizeof(this->m_chunkY), nullptr, nullptr, nullptr)
|
|
) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|