BBS issues with saving and loading
Posted: Sat Sep 26, 2015 2:48 am
why not introduce api to allow lua scripts to handle their own saving and loading?
have like and onSave and onLoad function
onsave would submit to the engine a list of attributes to store in the savefile, engine also stores the particulars of which lua that submitted the attributes
then on game load, engine starts the script again and passes all the stored attributes to onload so that the script can resume where it was so rudely interrupted by the player
have like and onSave and onLoad function
onsave would submit to the engine a list of attributes to store in the savefile, engine also stores the particulars of which lua that submitted the attributes
then on game load, engine starts the script again and passes all the stored attributes to onload so that the script can resume where it was so rudely interrupted by the player