As of today there is no way to access the mineral/vespene cost of upgrades and research.
Initiating an upgrade is represented as a BasicCommandEvent, which exposes no details about the ability that was triggered (compare this to UnitInitEvent which exposes the related unit and it's cost).
Is there a way to access the resource cost of the upgrade, or is this feature to be implemeted?
If you would share how/where the cost is fetched for a unit, then I'd be more than happy to implement a similar feature for upgrades.
As of today there is no way to access the mineral/vespene cost of upgrades and research.
Initiating an upgrade is represented as a BasicCommandEvent, which exposes no details about the ability that was triggered (compare this to UnitInitEvent which exposes the related unit and it's cost).
Is there a way to access the resource cost of the upgrade, or is this feature to be implemeted?
If you would share how/where the cost is fetched for a unit, then I'd be more than happy to implement a similar feature for upgrades.