mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(profile): add model related info
This commit is contained in:
parent
156b0e0a0b
commit
2b598e6dd1
62 changed files with 25665 additions and 8034 deletions
63
profile/3.3.5a-windows/include/common/datamanager.h
Normal file
63
profile/3.3.5a-windows/include/common/datamanager.h
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
#ifndef COMMON_DATA_MANAGER_H
|
||||
#define COMMON_DATA_MANAGER_H
|
||||
|
||||
DECLARE_STRUCT(CBaseManaged);
|
||||
DECLARE_STRUCT(CDataMgr);
|
||||
|
||||
DECLARE_ENUM(CBaseManaged__ManagedTypeIds);
|
||||
DECLARE_ENUM(CBaseManaged__ManagedFlags);
|
||||
|
||||
#include "system/types.h"
|
||||
#include "common/handle.h"
|
||||
#include "storm/array.h"
|
||||
#include "storm/list.h"
|
||||
#include "tempest/vector.h"
|
||||
|
||||
typedef HOBJECT HDATAMGR;
|
||||
|
||||
STORM_TS_FIXED_ARRAY_POINTER_TO(CBaseManaged);
|
||||
STORM_TS_LIST(CBaseManaged);
|
||||
|
||||
enum CBaseManaged__ManagedTypeIds {
|
||||
// TODO
|
||||
COORD = 3,
|
||||
FLOAT = 6,
|
||||
DATATYPEIDS = 7
|
||||
};
|
||||
|
||||
enum CBaseManaged__ManagedFlags {
|
||||
ALWAYSUPDATE = 0x1,
|
||||
READONLY = 0x2,
|
||||
REQUIRESUPDATE = 0x4,
|
||||
UPDATED = 0x8,
|
||||
};
|
||||
|
||||
struct CBaseManaged {
|
||||
void* v_vtable;
|
||||
TSLink_CBaseManaged m_link;
|
||||
uint8_t m_dataTypeId;
|
||||
uint8_t m_flags;
|
||||
void (*m_updateFcn)(float, void*, void*);
|
||||
void* m_updateData;
|
||||
float m_updatePriority;
|
||||
};
|
||||
|
||||
// class CDataMgr : public CHandleObject
|
||||
struct CDataMgr {
|
||||
CHandleObject b_base;
|
||||
TSFixedArray_pointer_to_CBaseManaged m_managedArray;
|
||||
TSExplicitList_CBaseManaged m_updateList;
|
||||
};
|
||||
|
||||
// class TManaged<T> : public CBaseManaged
|
||||
#define COMMON_T_MANAGED(T) \
|
||||
typedef struct TManaged_##T TManaged_##T; \
|
||||
struct TManaged_##T { \
|
||||
CBaseManaged b_base; \
|
||||
T m_data; \
|
||||
};
|
||||
// declare types
|
||||
COMMON_T_MANAGED(float);
|
||||
COMMON_T_MANAGED(C3Vector);
|
||||
|
||||
#endif
|
||||
|
|
@ -16,4 +16,6 @@ struct CHandleObject {
|
|||
int32_t m_refcount;
|
||||
};
|
||||
|
||||
DECLARE_HANDLE(HOBJECT);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue