Called when saving the game to a savefile. You should not override this method. Look into :saveData instead.