game-common / pragma.party / PartyPlugin / initializeParty /
initializeParty #
open suspend fun initializeParty(party: Party.Party, requestExt: ExtCreateRequest, partyConfig: PartyConfig)
Called when a new party is created before any players have been added. Use to initialize any party state. Perform any state mutations directly on the party object.
Used by:
- PartyService.createV1
Parameters #
party | The newly created party. Does not yet have players added to it. |
requestExt | Customer-defined ext data providing information about initialization request. |
partyConfig | The current service-level PartyConfig. |