thunderbrew/src/db/rec/ChatProfanityRec.cpp

49 lines
1.1 KiB
C++
Executable File

// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/ChatProfanityRec.hpp"
#include "db/Locale.hpp"
#include "util/SFile.hpp"
const char* ChatProfanityRec::GetFilename() {
return "DBFilesClient\\ChatProfanity.dbc";
}
uint32_t ChatProfanityRec::GetNumColumns() {
return 3;
}
uint32_t ChatProfanityRec::GetRowSize() {
return 12;
}
bool ChatProfanityRec::NeedIDAssigned() {
return false;
}
int32_t ChatProfanityRec::GetID() {
return this->m_ID;
}
void ChatProfanityRec::SetID(int32_t id) {
this->m_ID = id;
}
bool ChatProfanityRec::Read(SFile* f, const char* stringBuffer) {
uint32_t textOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_language, sizeof(this->m_language), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_text = &stringBuffer[textOfs];
} else {
this->m_text = "";
}
return true;
}