Refactor. Instead of
static Game g_Games[NUM_GAMES] =
{
{ a ... },
{ b ... }
};
do
static Game g_Game_A =
{
a ...
};
static Game &g_Games[NUM_GAMES] =
{ &g_Game_A, &g_Game_B, &g_Game_C };
This allows much easier organizing data by game, and splitting large arrays
into a dynamically sized array instead of having large fixed-size arrays sized
for the largest one. The GAME_ array may be deprecated, and this may be done
for styles too.
This commit is contained in:
+476
-446
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user