mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 02:52:47 +03:00
45 lines
1.7 KiB
C++
45 lines
1.7 KiB
C++
// DO NOT EDIT: generated by whoa-autocode
|
|
#include "db/rec/CharHairTexturesRec.hpp"
|
|
#include "util/SFile.hpp"
|
|
|
|
const char* CharHairTexturesRec::GetFilename() {
|
|
return "DBFilesClient\\CharHairTextures.dbc";
|
|
}
|
|
|
|
uint32_t CharHairTexturesRec::GetNumColumns() {
|
|
return 8;
|
|
}
|
|
|
|
uint32_t CharHairTexturesRec::GetRowSize() {
|
|
return 32;
|
|
}
|
|
|
|
bool CharHairTexturesRec::NeedIDAssigned() {
|
|
return false;
|
|
}
|
|
|
|
int32_t CharHairTexturesRec::GetID() {
|
|
return this->m_ID;
|
|
}
|
|
|
|
void CharHairTexturesRec::SetID(int32_t id) {
|
|
this->m_ID = id;
|
|
}
|
|
|
|
bool CharHairTexturesRec::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_field_0_5_3_3368_001_race, sizeof(this->m_field_0_5_3_3368_001_race), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_field_0_5_3_3368_002_gender, sizeof(this->m_field_0_5_3_3368_002_gender), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_field_0_5_3_3368_003, sizeof(this->m_field_0_5_3_3368_003), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_field_0_5_3_3368_004_mayberacemask, sizeof(this->m_field_0_5_3_3368_004_mayberacemask), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_field_0_5_3_3368_005_the_x_in_hair_xy_blp, sizeof(this->m_field_0_5_3_3368_005_the_x_in_hair_xy_blp), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_field_0_5_3_3368_006, sizeof(this->m_field_0_5_3_3368_006), nullptr, nullptr, nullptr)
|
|
|| !SFile::Read(f, &this->m_field_0_5_3_3368_007, sizeof(this->m_field_0_5_3_3368_007), nullptr, nullptr, nullptr)
|
|
) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|