game-common / pragma.party / PartyPlugin / updatePlayer /

updatePlayer #

open suspend fun updatePlayer(playerToUpdate: Party.PartyPlayer, requestExt: ExtUpdatePartyPlayerRequest, party: Party.Party, partyConfig: PartyConfig)

Called when receiving an update player selections request. Use to perform any necessary updates to the player or party state. Perform any state mutations directly on the player or party objects.

Used by:

  • PartyService.updatePlayerSelectionsV1

Parameters #

playerToUpdate

The player being updated.

requestExt

Customer-defined ext data providing information about what updates to perform.

party

The player’s current party.

partyConfig

The current service-level PartyConfig.