mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-08 18:36:00 +03:00
40 lines
946 B
C++
Executable File
40 lines
946 B
C++
Executable File
// DO NOT EDIT: generated by whoa-autocode
|
|
#include "db/rec/CreatureMovementInfoRec.hpp"
|
|
#include "db/Locale.hpp"
|
|
#include "util/SFile.hpp"
|
|
|
|
const char* CreatureMovementInfoRec::GetFilename() {
|
|
return "DBFilesClient\\CreatureMovementInfo.dbc";
|
|
}
|
|
|
|
uint32_t CreatureMovementInfoRec::GetNumColumns() {
|
|
return 2;
|
|
}
|
|
|
|
uint32_t CreatureMovementInfoRec::GetRowSize() {
|
|
return 8;
|
|
}
|
|
|
|
bool CreatureMovementInfoRec::NeedIDAssigned() {
|
|
return false;
|
|
}
|
|
|
|
int32_t CreatureMovementInfoRec::GetID() {
|
|
return this->m_ID;
|
|
}
|
|
|
|
void CreatureMovementInfoRec::SetID(int32_t id) {
|
|
this->m_ID = id;
|
|
}
|
|
|
|
bool CreatureMovementInfoRec::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_smoothFacingChaseRate, sizeof(this->m_smoothFacingChaseRate), nullptr, nullptr, nullptr)
|
|
) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|