I'm trying to develop a save system for saving my main map. The map is a 2d array of MapTile classes, where each MapTile has associated variables. Some of these variables include references to other classes, like a Settlement class, which in turn stores its own variables.
Using dictionaries, and serializing to json seems to be the preferred way of saving state to file in Godot, but I'm not sure how I would go about doing so without packing/unpacking each layer of each tile of the 2d array manually, which seems like a bit of a pain.
Is there a more convenient way to do this?