i'm trying to create a saving system using custom resources: each node has a "stats" resource, that will be saved with ResourceSaver, a relatively simple task for variable like float or strings.
However, some of the stats of these nodes are actually link to other nodes (e.g: each
Nation has a
city_list variable, which is an array of objects that point to the city nodes belonging to that nation), and i do not know how to put them in the custom made resource i created.
In fact, extending Resource, inside the nation stats
city_list cannot be an array of nodes (not possible inside a resource), neither an array of objects (possible, but it cannot be saved).
I was thinking about changing
city_list into a list of paths that point at the saved resource file of the city, but it seems like things would spiral up in complexity in this way.
Am i missing something that would make this task easier?