跳到主要内容

Server Party API Reference

Party is a service for creating an instant team for players. The player can use it to build a "temporary virtual team" and then fire a battle.

API List

APIDescription
BatchGetPlayerCurrentPartyIdsBGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string
GetPartyInfoGet party info by party id

API Details

BatchGetPlayerCurrentPartyIds

BGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string

/// <summary>BGet the current party ids of players, if a player is not in any party currently, the corresponding party id is empty string</summary>
public void BatchGetPlayerCurrentPartyIds(BatchGetPlayerCurrentPartyIdsParams pgos_params, PartyDelegate0 callback);

Parameters:

ParamTypeDescription
pgos_paramsBatchGetPlayerCurrentPartyIdsParams
callbackPartyDelegate0

Return: void

GetPartyInfo

Get party info by party id

/// <summary>Get party info by party id</summary>
public void GetPartyInfo(GetPartyInfoParams pgos_params, PartyDelegate1 callback);

Parameters:

ParamTypeDescription
pgos_paramsGetPartyInfoParams
callbackPartyDelegate1

Return: void

All Delegates

public delegate void PartyDelegate0(PgosResult a0, BatchGetPlayerCurrentPartyIdsResult a1);
public delegate void PartyDelegate1(PgosResult a0, GetPartyInfoResult a1);

Type Reference: