I have a small project in which everything you do is controlled by abilities (which are all upgrades) on your main building.
For testing purposes I've written a small AI which just executes random abilities on its main building.
As the map develops, the number of upgrades has become very large. I am looking for a simple solution to having a default dumb testing AI.
Is it somehow possible to make a list/array of all the available active buttons (or abilities) of the main building?