Use of inline arrays to model arrays of structs
For a native type with the following shape:
it occurred to me I could represent the sequential
which raises a few questions, since I'm unfamiliar with the feature:
1) is this legal? can you make
2) does
it occurred to me I could represent the sequential
CHRDATAs with an InlineArray as such:which raises a few questions, since I'm unfamiliar with the feature:
1) is this legal? can you make
InlineArrays of blittable structs, or should usage of InlineArray be restricted to primitives? (i.e. int, float)2) does
chrs[62].hp = 300; in the above case operate on a copy or actually mutate the relevant part of SAVEDATA?