mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(component): add item displays member variable to CCharacterComponent
This commit is contained in:
parent
319ea1466e
commit
7482779b37
@ -59,6 +59,12 @@ struct CompSectionInfo {
|
|||||||
C2iVector size;
|
C2iVector size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ComponentItemDisplay {
|
||||||
|
void* texture[7] = {};
|
||||||
|
uint32_t displayID[7] = {};
|
||||||
|
uint32_t priorityDirty = 0;
|
||||||
|
};
|
||||||
|
|
||||||
class CCharacterComponent {
|
class CCharacterComponent {
|
||||||
public:
|
public:
|
||||||
// Static variables
|
// Static variables
|
||||||
@ -105,6 +111,7 @@ class CCharacterComponent {
|
|||||||
ComponentData m_data;
|
ComponentData m_data;
|
||||||
HTEXTURE m_baseTexture = nullptr;
|
HTEXTURE m_baseTexture = nullptr;
|
||||||
void* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {};
|
void* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {};
|
||||||
|
ComponentItemDisplay m_itemDisplays[NUM_COMPONENT_SECTIONS] = {};
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
void CreateBaseTexture();
|
void CreateBaseTexture();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user