Why does ResourcePreloader.GetResourceList() in C# return an array of strings instead of an array of resources?

Godot Version

v4.5.1.stable.mono.official

Question

Exactly what the title says.

I’m currently preloading all the resources that i want to access in a global script with a loop that loops through a specific folder and loads all the resources that are there so that i can access them to initialize an enemy with a specific resource (also present in the global script) and so i found the ResourcePreloader which is exactly what i need but doesn’t have a way to get all the resources inside it as an array.

I want them to be inside an array to Randomly select one and apply it to the enemy of my choice as well.

You can use GetResource(name). Look at ResourcePreloader reference.