mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
|
|
// DO NOT EDIT: generated by whoa-autocode
|
||
|
|
#include "db/rec/AnimReplacementRec.hpp"
|
||
|
|
#include "db/Locale.hpp"
|
||
|
|
#include "util/SFile.hpp"
|
||
|
|
|
||
|
|
const char* AnimReplacementRec::GetFilename() {
|
||
|
|
return "DBFilesClient\\AnimReplacement.dbc";
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32_t AnimReplacementRec::GetNumColumns() {
|
||
|
|
return 4;
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32_t AnimReplacementRec::GetRowSize() {
|
||
|
|
return 16;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool AnimReplacementRec::NeedIDAssigned() {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t AnimReplacementRec::GetID() {
|
||
|
|
return this->m_ID;
|
||
|
|
}
|
||
|
|
|
||
|
|
void AnimReplacementRec::SetID(int32_t id) {
|
||
|
|
this->m_ID = id;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool AnimReplacementRec::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_srcAnimID, sizeof(this->m_srcAnimID), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_dstAnimID, sizeof(this->m_dstAnimID), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_parentAnimReplacementSetID, sizeof(this->m_parentAnimReplacementSetID), nullptr, nullptr, nullptr)
|
||
|
|
) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|