mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-27 06:16:04 +03:00
48 lines
1.6 KiB
C++
Executable File
48 lines
1.6 KiB
C++
Executable File
// 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;
|
|
}
|