mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 17:19:09 +00:00
feat(db): add static database classes from whoa-autocode
This commit is contained in:
parent
386ddcbd9f
commit
3689ef9b41
601 changed files with 25713 additions and 106 deletions
40
src/db/rec/AnimReplacementRec.cpp
Normal file
40
src/db/rec/AnimReplacementRec.cpp
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
// DO NOT EDIT: generated by whoa-autocode
|
||||
#include "db/rec/AnimReplacementRec.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