Ive been writing a tool to edit a kind of resource (network graph), which holds a list of other resources (points, edges). I cannot call functions on the network graph resource while using to tool, since it needs to be an @tool to be initialized. However, when I do that, I cannot add the point and edge resource to the arrays, because it tells me something about typed arrays not being compatible with something that's not a GD script. So I add @tool to the sub resources, and it gives me more errors I cannot decipher.
How should I approach this? I need the @tool, but I cannot use it for other reasons. Should I go about it a different way? Should I use dictionaries instead of sub resources?