Its not really my area but I think most UK homes in built-up areas (i.e. underground cables) were TN-S and those are now TN-C-S (with the C-S transition at the cut-out for new builds, but potentially elsewhere in the network for older conversions). For rural I guess twin cable overheads would always be TT, but now you see the ABC (Aerial Bundle Cable) where an damage incident is likely to take out both constructors maybe those are going TN-C-S as well.
Something like this could do the generator switching you seem to want:
Here two 4-pole switches are arranged so you have either the mains or the generator, and with the "neutralising link" from the supply not connected under off-grid use. There is then a 2nd link (using the generator-side 4th pole) but never two at the one time, and with the 2nd earth rod at some reasonable distance from the supply earth rod you are
always connected to a means of earthing.
If the supply switch's earth pole should fail or be fractionally slower to switch, and if the CU is all RCBO (or has an RCD incomer), you can still meet ADS as a TT arrangement no matter what.
When on-mains the generator chassis is isolated from the PEN circuit, and then earthed when in use.
There are no PEN conductors here bar the supply, all of the others may be linked, but they are not simultaneously current carrying and solely linked to the CPC network. The main gap here is there is no RCD "additional protection" on the generator feed so under UK regs it would have to be hard-wired and not on a socket (if no more than 32A).
Just for discussion as I doubt anyone makes such a configuration!