mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02: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
|
||||
// COMPONENT_VARIATIONS. It does NOT refer to COMPONENT_SECTIONS.
|
||||
struct {
|
||||
uint32_t variationCount;
|
||||
st_variation* variationArray;
|
||||
int32_t variationCount = 0;
|
||||
st_variation* variationArray = nullptr;
|
||||
} sections[NUM_COMPONENT_VARIATIONS];
|
||||
};
|
||||
|
||||
struct st_variation {
|
||||
uint32_t colorCount;
|
||||
st_color* colorArray;
|
||||
int32_t colorCount = 0;
|
||||
st_color* colorArray = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user