I was making a pvz Adventures like game, I have a class "Data" that is typed as class_name Data, here I have an enum for plans, zombies, projectiles, and a dictionary called "get" that contains preload(classes) to use Data.get[Data.enum] to get a class. To assign the kind of projectile the plant will shoot I use 'export(Data.O) var projectile' it worked. Then I made a similar thing for planning a plant, I have a tilemap, an enum T (terrains) that are interpreted on the tilemap to allow or not plant on this cell, the base class of plants have
'export(Array, Data.T) var plant in'
And suddenly i doesn't work, it said 'Error expected const expression' in the export, line wasen't in red, just happen on play, Then all get broken without reason, I comment that export and happen the same error on the projectile export, I commented it, and give me the error in title in line 47 where literally end my planta code ¿¿¿???
'Parser Error: The class 'Data' was found in global scope but it's couldn't be loaded'
I don't have any idea what had happened, all worked well and now not, the problem seems to be un Data but where or how? I can't play the project