[Feature Request] Struct improvements

I haven’t used Blueprints much in recent months, so am a bit rusty of what is possible and what isn’t, but another way of doing it would be to have a array of a struct. That struct just containing a Enum type (for what type of item it is) and a value for how many of those items are in the store. Ideally a hash map would be better than a array, but blueprints doesn’t support built-in hash maps as far as I know.

Then you would have a “reference to that struct” that you set to the required one depending of what type of item you wanted to fetch. One problem is that you can’t use a reference to structure in the array, so you would need to copy the values out of the array and then back in again.

So a quick example is [Note that I haven’t added the nodes to check there are enough items, but that would be simple to do]:

For new types of items, you would just set the Current Index variable to the correct array index. Or you could loop through the array until you found the struct with the same enum type as the required type.