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

This commit is contained in:
VDm 2025-04-05 13:26:23 +04:00
parent 386ddcbd9f
commit 3689ef9b41
601 changed files with 25713 additions and 106 deletions

View file

@ -0,0 +1,46 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AreaTriggerRec.hpp"
#include "util/SFile.hpp"
const char* AreaTriggerRec::GetFilename() {
return "DBFilesClient\\AreaTrigger.dbc";
}
uint32_t AreaTriggerRec::GetNumColumns() {
return 10;
}
uint32_t AreaTriggerRec::GetRowSize() {
return 40;
}
bool AreaTriggerRec::NeedIDAssigned() {
return false;
}
int32_t AreaTriggerRec::GetID() {
return this->m_ID;
}
void AreaTriggerRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AreaTriggerRec::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_continentID, sizeof(this->m_continentID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[0], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[1], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[2], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_radius, sizeof(this->m_radius), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxLength, sizeof(this->m_boxLength), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxWidth, sizeof(this->m_boxWidth), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxHeight, sizeof(this->m_boxHeight), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxYaw, sizeof(this->m_boxYaw), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}