game-common / pragma.party / PartyPlugin /
PartyPlugin #
interface PartyPlugin
The PartyPlugin allows for custom definition of logic within the PartyService.
Functions #
Name | Summary |
---|---|
Called when broadcasting a change to the party. Use to build any ext data that should be shared about the party. | |
Called when broadcasting a change to the party member. Use to build any ext data that should be shared about a player. | |
Called when the party is attempting to enter matchmaking. Use to build any ext data the matchmaking system will need to know about the party. | |
Called for each player within a party when the party is attempting to enter matchmaking. Use to build any ext data the matchmaking system will need to know about each player. | |
Called when broadcasting a change to the party member. Use to build any private ext data that should only be sent to the player. | |
Called when the party is attempting to enter matchmaking. Use to build the matchmaking key they will use to enter matchmaking. | |
Called when receiving a change ready state request. Use to determine whether a player can change their ready state. Return true to allow Pragma to change their ready state to the new ready state, or return false to block the change. | |
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. | |
Called before the player has been added to the party. Use to prepare the new player to be added to the party. Perform any state mutations directly on the player or party objects. The player will be added to the party by the platform after this call. | |
Called after a player has been removed from the party. Use to perform any necessary updates to the party state. Perform any state mutations directly on the party object. The provided player will have already been removed from the party. | |
Called when players are returning from a game instance. Use to perform any necessary updates to the player or party state. The returning players may be a subset of all the players in the party. | |
Called when players are returning from matchmaking. Use to perform any necessary updates to the player or party state. The returning players may be a subset of all the players in the party. | |
Called when receiving an update party selections request. Use to perform any necessary updates to the party state. Perform any state mutations directly on the party object. | |
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. |