My current project uses 6 different lua tables to manage its data. I save and load the tables from 6 separate json files.
Is there a way in which to structure a lua table so that all the data resides in this single table, thus a single json file?
my tables are currently
gameTable 1 dimensional table with 10 values
empireTable 2 dim table with 2-4 players with 14 values assigned for each player.
leaderTable 2 dim table with up to 20 leaders with 12 values each
three map files
mapControl 1 dim array with 8 values
mapTable 3 dim table representing a 10 by 10 grid, with 5 values for each square in the grid
mapTable2 if the map is double layer then this is the same set up as above
I have no idea how to structure it into a single table or if it’s possible
let me know your thoughts?