game-common / pragma.party / 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 #
party | The current party. |
newPlayer | The player being added to the party. null if no new player is being added. |