added prototype of the possibility to generate resources by unit