mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(db): load all databases together using autocode
This commit is contained in:
parent
e77ed33b0c
commit
efd37e3050
606 changed files with 25979 additions and 168 deletions
47
src/db/rec/AreaTriggerRec.cpp
Executable file
47
src/db/rec/AreaTriggerRec.cpp
Executable file
|
|
@ -0,0 +1,47 @@
|
|||
// DO NOT EDIT: generated by whoa-autocode
|
||||
#include "db/rec/AreaTriggerRec.hpp"
|
||||
#include "db/Locale.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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue