mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 17:19:09 +00:00
54 lines
2.4 KiB
C++
54 lines
2.4 KiB
C++
|
|
// DO NOT EDIT: generated by whoa-autocode
|
||
|
|
#include "db/rec/AnimKitSegmentRec.hpp"
|
||
|
|
#include "db/Locale.hpp"
|
||
|
|
#include "util/SFile.hpp"
|
||
|
|
|
||
|
|
const char* AnimKitSegmentRec::GetFilename() {
|
||
|
|
return "DBFilesClient\\AnimKitSegment.dbc";
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32_t AnimKitSegmentRec::GetNumColumns() {
|
||
|
|
return 16;
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32_t AnimKitSegmentRec::GetRowSize() {
|
||
|
|
return 64;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool AnimKitSegmentRec::NeedIDAssigned() {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
int32_t AnimKitSegmentRec::GetID() {
|
||
|
|
return this->m_ID;
|
||
|
|
}
|
||
|
|
|
||
|
|
void AnimKitSegmentRec::SetID(int32_t id) {
|
||
|
|
this->m_ID = id;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool AnimKitSegmentRec::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_parentAnimKitID, sizeof(this->m_parentAnimKitID), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_animID, sizeof(this->m_animID), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_animStartTime, sizeof(this->m_animStartTime), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_animKitConfigID, sizeof(this->m_animKitConfigID), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_startCondition, sizeof(this->m_startCondition), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_startConditionParam, sizeof(this->m_startConditionParam), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_startConditionDelay, sizeof(this->m_startConditionDelay), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_endCondition, sizeof(this->m_endCondition), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_endConditionParam, sizeof(this->m_endConditionParam), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_endConditionDelay, sizeof(this->m_endConditionDelay), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_speed, sizeof(this->m_speed), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_segmentFlags, sizeof(this->m_segmentFlags), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_forcedVariation, sizeof(this->m_forcedVariation), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_overrideConfigFlags, sizeof(this->m_overrideConfigFlags), nullptr, nullptr, nullptr)
|
||
|
|
|| !SFile::Read(f, &this->m_loopToSegmentIndex, sizeof(this->m_loopToSegmentIndex), nullptr, nullptr, nullptr)
|
||
|
|
) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
}
|