mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +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
41
src/db/rec/AnimReplacementRec.cpp
Executable file
41
src/db/rec/AnimReplacementRec.cpp
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
// 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue