mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(component): add item displays member variable to CCharacterComponent
This commit is contained in:
1 file changed
+7
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user