I work in Unity...
In order to save the flow of waves I use Three data types
- Enemy formation(choose)
- Wave Segment
- Wave
Enemy formation have one Enum formation type and enemies which form that formation
Wave segment have list of formations like (formation 1 & formation 2 & formation 2)
Wave have list of WaveSegments(+ one list - time between these segments)
All of those data types take memory of less than 1kB in most of cases(e.g. from 300 bytes to 700 bytes)
Minimal memory to save one file is 1kB so every asset will be 1kB so I'm wasting at least half of memory.
Is there a way to organize this better?