I want the player's data to just be a list of templates that are loaded in from separate tables of data. This is because I want to be able to change the templates without having to update each and every player object as well.
I'm not really sure about how to do this with callbacks when using the PlayerIO.BigDB.Load function. I want all the templates to be loaded into the game before the program continues, however each individual template that is loaded has a different callback function. How can you tell when everything is loaded correctly?
I could have a global counter variable that the callback uses to determine all templates are loaded and then calls another function, but if there is a problem with loading one of the templates then the program would then be stuck.