You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serialize(), which returns the quest serialized into a json object. Right now it export whatever variable is declared.
This system has to be refactored, first of all by giving a new name to quests_as_dict and dict_to_quests.
Then, add a deserialize() method to inject the json object data into the quests to load data (useful for saving/loading quest progresses)
Finally, make serialize() and deserialize() call a method on the quest itself instead of guessing which data has to be loaded. This allows to load data into declared sub-resources and provides more flexibility to the end user to choose which data has to be saved.
Why do you think it should be added?
Making QuestSystem as flexible as possible and yet simple is the main focus. Allowing custom deserialize and serialize makes it possible to choose which data is useful to be saved and reducing the save file size by filtering only the actual useful data.
The text was updated successfully, but these errors were encountered:
Describe the feature
Right now quest system provides a few methods to serialize and deserialize quests.
This system has to be refactored, first of all by giving a new name to
quests_as_dict
anddict_to_quests
.Then, add a deserialize() method to inject the json object data into the quests to load data (useful for saving/loading quest progresses)
Finally, make serialize() and deserialize() call a method on the quest itself instead of guessing which data has to be loaded. This allows to load data into declared sub-resources and provides more flexibility to the end user to choose which data has to be saved.
Why do you think it should be added?
Making QuestSystem as flexible as possible and yet simple is the main focus. Allowing custom deserialize and serialize makes it possible to choose which data is useful to be saved and reducing the save file size by filtering only the actual useful data.
The text was updated successfully, but these errors were encountered: