i have UnitArray offset, but for Trees there is some another offset,
also goldmines and shops have their own array.
or may be map terrain array or smth ? to see where ground and where water or where no pass area.
i know only that every tree is a Unit structure, also other items/shops/goldmines is a Unit,
also i know that goldmines and various shops on map has very close addreses, so they must be in same array.

in short:
1) how to enumerate All trees on map and get Unit* pointer for each.
2) how to enumerate All goldmines on map and get Unit* pointer for each.
+3) how to detect map ground type on specified X,Y, and also how to detect ingame map Width/Height.