mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(profile): add more work related to console
This commit is contained in:
parent
08b49c5197
commit
e95eb3354d
49 changed files with 9188 additions and 245 deletions
35
profile/3.3.5a-windows-386/include/db/clientdb.h
Normal file
35
profile/3.3.5a-windows-386/include/db/clientdb.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#ifndef DB_CLIENT_DB_H
|
||||
#define DB_CLIENT_DB_H
|
||||
|
||||
#include "db/idatabase.h"
|
||||
|
||||
DECLARE_STRUCT(WowClientDB_Base);
|
||||
DECLARE_STRUCT(WowClientDB_Base__v_table);
|
||||
|
||||
struct WowClientDB_Base__v_table {
|
||||
void* v_fn_00;
|
||||
};
|
||||
|
||||
struct WowClientDB_Base {
|
||||
void** v_table;
|
||||
// Member variables
|
||||
int32_t m_loaded;
|
||||
int32_t m_numRecords;
|
||||
int32_t m_maxID;
|
||||
int32_t m_minID;
|
||||
const char* m_strings;
|
||||
};
|
||||
|
||||
#define DB_CLIENT_DB(T) \
|
||||
DB_I_DATABASE(T); \
|
||||
typedef struct WowClientDB_Common_##T WowClientDB_Common_##T; \
|
||||
typedef struct WowClientDB_##T WowClientDB_##T; \
|
||||
struct WowClientDB_Common_##T { \
|
||||
WowClientDB_Base b_base; \
|
||||
}; \
|
||||
struct WowClientDB_##T { \
|
||||
WowClientDB_Common_##T b_base_01; \
|
||||
IDatabase_##T b_base_02; \
|
||||
}
|
||||
|
||||
#endif
|
||||
19
profile/3.3.5a-windows-386/include/db/idatabase.h
Normal file
19
profile/3.3.5a-windows-386/include/db/idatabase.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef DB_I_DATABASE_H
|
||||
#define DB_I_DATABASE_H
|
||||
|
||||
DECLARE_STRUCT(IDatabase__vtable);
|
||||
|
||||
struct IDatabase__vtable {
|
||||
// T* GetRecord(int32_t id);
|
||||
void* v_fn_GetRecord;
|
||||
};
|
||||
|
||||
#define DB_I_DATABASE(T) \
|
||||
typedef struct IDatabase_##T IDatabase_##T; \
|
||||
struct IDatabase_##T { \
|
||||
IDatabase__vtable* v_table; \
|
||||
T* m_records; \
|
||||
T** m_recordsById; \
|
||||
}
|
||||
|
||||
#endif
|
||||
6331
profile/3.3.5a-windows-386/include/db/records.h
Normal file
6331
profile/3.3.5a-windows-386/include/db/records.h
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue