So, first off thanks for taking the time to read this. I am working on a fun, branching dialogue system for my game. There is a Conversation class, with a name, and a list of “Dialogues”, which are their own class.
A Dialogue has the text of the dialogue, as well as a list of Dialogues “responses”, which of course could have their own responses, and so on. Branching!
The problem, and you may of seen this coming a mile away, is with serializing and saving everything in JSON format. I am getting an error saying I am exceeding the “Serialization depth limit”.
So, is there a way I can remediate this approach without exceeding that limit? Or is this just a terrible implementation to begin with?