mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(component): add default initializers for variation array
This commit is contained in:
parent
cf45484044
commit
113a98c202
@ -16,14 +16,14 @@ struct st_race {
|
|||||||
// The use of "section" here refers to the groups of variations represented in
|
// The use of "section" here refers to the groups of variations represented in
|
||||||
// COMPONENT_VARIATIONS. It does NOT refer to COMPONENT_SECTIONS.
|
// COMPONENT_VARIATIONS. It does NOT refer to COMPONENT_SECTIONS.
|
||||||
struct {
|
struct {
|
||||||
uint32_t variationCount;
|
int32_t variationCount = 0;
|
||||||
st_variation* variationArray;
|
st_variation* variationArray = nullptr;
|
||||||
} sections[NUM_COMPONENT_VARIATIONS];
|
} sections[NUM_COMPONENT_VARIATIONS];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct st_variation {
|
struct st_variation {
|
||||||
uint32_t colorCount;
|
int32_t colorCount = 0;
|
||||||
st_color* colorArray;
|
st_color* colorArray = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user