When you plug into shore power, it should charge your batteries and also power everything else (AC components assuming you have the correct amps and volts). You could add a direct line to charge your batteries via trickle charger. I did that but only because I disconnect that batteries when I store the coach from time to time.
Hope that helps.