mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-23 14:27:19 +03:00
feat(db): improve accuracy of db records
This commit is contained in:
6 files changed
+48
-22
No files matched your search
@@ -5,6 +5,18 @@ const char* AchievementRec::GetFilename() {
|
||||
return "DBFilesClient\\Achievement.dbc";
|
||||
}
|
||||
|
||||
uint32_t AchievementRec::GetNumColumns() {
|
||||
return 62;
|
||||
}
|
||||
|
||||
uint32_t AchievementRec::GetRowSize() {
|
||||
return 248;
|
||||
}
|
||||
|
||||
int32_t AchievementRec::GetID() {
|
||||
return this->m_ID;
|
||||
}
|
||||
|
||||
bool AchievementRec::Read(SFile* f, const char* stringBuffer) {
|
||||
uint32_t titleOfs[16];
|
||||
uint32_t titleMask;
|
||||
|
||||
@@ -7,9 +7,6 @@ class SFile;
|
||||
|
||||
class AchievementRec {
|
||||
public:
|
||||
static constexpr uint32_t columnCount = 62;
|
||||
static constexpr uint32_t rowSize = 248;
|
||||
|
||||
int32_t m_ID;
|
||||
int32_t m_faction;
|
||||
int32_t m_instanceID;
|
||||
@@ -20,12 +17,16 @@ class AchievementRec {
|
||||
int32_t m_points;
|
||||
int32_t m_uiOrder;
|
||||
int32_t m_flags;
|
||||
uint32_t m_iconID;
|
||||
int32_t m_iconID;
|
||||
const char* m_reward;
|
||||
int32_t m_minimumCriteria;
|
||||
int32_t m_sharesCriteria;
|
||||
|
||||
static const char* GetFilename();
|
||||
static uint32_t GetNumColumns();
|
||||
static uint32_t GetRowSize();
|
||||
|
||||
int32_t GetID();
|
||||
bool Read(SFile* f, const char* stringBuffer);
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,18 @@ const char* Cfg_CategoriesRec::GetFilename() {
|
||||
return "DBFilesClient\\Cfg_Categories.dbc";
|
||||
}
|
||||
|
||||
uint32_t Cfg_CategoriesRec::GetNumColumns() {
|
||||
return 21;
|
||||
}
|
||||
|
||||
uint32_t Cfg_CategoriesRec::GetRowSize() {
|
||||
return 84;
|
||||
}
|
||||
|
||||
int32_t Cfg_CategoriesRec::GetID() {
|
||||
return this->m_ID;
|
||||
}
|
||||
|
||||
bool Cfg_CategoriesRec::Read(SFile* f, const char* stringBuffer) {
|
||||
uint32_t nameOfs[16];
|
||||
uint32_t nameMask;
|
||||
|
||||
@@ -7,17 +7,18 @@ class SFile;
|
||||
|
||||
class Cfg_CategoriesRec {
|
||||
public:
|
||||
static constexpr uint32_t columnCount = 21;
|
||||
static constexpr uint32_t rowSize = 84;
|
||||
int32_t m_ID;
|
||||
int32_t m_localeMask;
|
||||
int32_t m_createCharsetMask;
|
||||
int32_t m_flags;
|
||||
const char *m_name;
|
||||
|
||||
uint32_t m_ID;
|
||||
uint32_t m_localeMask;
|
||||
uint32_t m_createCharsetMask;
|
||||
uint32_t m_flags;
|
||||
const char *m_name;
|
||||
static const char* GetFilename();
|
||||
static uint32_t GetNumColumns();
|
||||
static uint32_t GetRowSize();
|
||||
|
||||
static const char* GetFilename();
|
||||
bool Read(SFile* f, const char* stringBuffer);
|
||||
int32_t GetID();
|
||||
bool Read(SFile* f, const char* stringBuffer);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user