mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 02:52:47 +03:00
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
// DO NOT EDIT: generated by whoa-autocode
|
|
#include "db/rec/AreaGroupRec.hpp"
|
|
#include "util/SFile.hpp"
|
|
|
|
const char* AreaGroupRec::GetFilename() {
|
|
return "DBFilesClient\\AreaGroup.dbc";
|
|
}
|
|
|
|
uint32_t AreaGroupRec::GetNumColumns() {
|
|
return 8;
|
|
}
|
|
|
|
uint32_t AreaGroupRec::GetRowSize() {
|
|
return 32;
|
|
}
|
|
|
|
bool AreaGroupRec::NeedIDAssigned() {
|
|
return false;
|
|
}
|
|
|
|
int32_t AreaGroupRec::GetID() {
|
|
return this->m_ID;
|
|
}
|
|
|
|
void AreaGroupRec::SetID(int32_t id) {
|
|
this->m_ID = id;
|
|
}
|
|
|
|
bool AreaGroupRec::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_areaID[0], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_areaID[1], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_areaID[2], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_areaID[3], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_areaID[4], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_areaID[5], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_nextAreaID, sizeof(this->m_nextAreaID), nullptr, nullptr, nullptr)
|
|
) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|