is it possible to save resources that are within another resource? For example I have a save file resource that contains another resource (player inventory) and when I load the save the inventory resource doesn't get saved along with the overall save file. My save file script:
extends Resource
class_name SaveFile
export(int) var map_seed = 0
export(int) var depth = 1
export(Vector2) var grid_pos = Vector2()
export(float) var ang = 0
export(Vector3) var rotation = Vector3()
export(Resource) var attributes = null
export(Resource) var inventory = null
export(Resource) var equipment = null
I create a new inventory (Inventory.new()) during new save file creation and when I load up the game it doesn't seem to save the inventory resource (or any of the other resource exports). Am I doing something wrong or can subresources just not be saved?