Inverter runs off the RV batteries. Generator provides 120V AC when you can not plug in your shore line cable.
Inverter also provides 120V AC, but only to wall outlets and limited to maximum of 2000watts.
You probably have a generator problem. Try pluging in to shore power.