does the load of the generator affects the mechanical output of the engine? how?
In a nutshell or laymen's terms:
A generator converts mechanical energy into electrical energy. The magnetic interactions of an armature, rotated by the engine, in stator windings creates an electrical current. When a demand is made for more electrical current, the magnetic coupling transfers this demand by increasing the magnetic load or counter force on the rotating armature. The engine, trying to maintain a constant RPM (or not in your case) of the armature, has to use more fuel to overcome this resistance.
FWIW I hope that helps.