When you mouse over a resource in the map view, it shows you what type of resource it is, and how much is left.
Is this data accessible anywhere in the API - I cant seem to find anything useful towards it in the API Docs.
I'm thinking something like:
Code: Select all
for _,resource in pairs(game.surface["blah"].get_resource_piles()) do
resource.type = "iron-ore" (Read Only)
resource.amount = "320000" (Read Only)
resource.area = {x,y} (Read Only)
end
Thanks