game-common / / OrderedGameServerCompatibilityPlugin / calculateGameServerVersion /

calculateGameServerVersion #

open override fun calculateGameServerVersion(party: Party, newPlayer: PartyPlayer?): String?

Used to determine an appropriate game server version for the party.

Used by:

  • PartyService.createV1
  • PartyService.recreateV1
  • PartyService.respondToInviteV1
  • PartyService.joinWithInviteCodeV1

Return #

Game server version that supports the party. If the party is not supported, return null.

Parameters #


The current party.


The player being added to the party. null if no new player is being added.