They get paid by the season, not necessarily by the game.
I could be wrong as I have not ever read one of their contracts.
It would make sense to pro-rate it to account for lost revenue due to lost games, so maybe that is how they do it as part of the CBA.
Long answer for I don't know.