I am wondering if there is an easy way to save and load a decorated object in c++ as i have never done file handling in C++ before.
Currently the only object type I need to save is objects that stores values for health, damage etc. and each of these objects has at least 1 decorator. I know i could make an save function for each of the classes however I'm unsure how I would load the object.
Aucun commentaire:
Enregistrer un commentaire