DWCEvalPlayerCallback

Syntax

#include <dwc.h>

typedef int(*) DWCEvalPlayerCallback(int index,
            void *param);

Arguments

index Index of player to be evaluated. This index must be passed to the function that gets the matchmaking key value.
param Callback parameter.

Return Values

Returns the player's evaluation value. The player falls outside the scope of matchmaking if a value less than or equal to zero is returned.

Description

This function is called every time a player targeted for matchmaking is found when performing peer matchmaking with friend specified/unspecified. The larger a player's return value, the more likely that player will be selected as a connection target.

Values specified using the DWC_AddMatchKeyString and DWC_AddMatchKeyInt functions can be obtained and used as a basis for rating.

It takes some time for the addition of a condition key to be propagated to the server. Thus, even if the application sets the condition key, it will sometimes be determined to not exist, and the default value will be returned.

See Also

DWC_ConnectToFriendsAsync
DWC_ConnectToAnybodyAsync DWC_AddMatchKeyString DWC_AddMatchKeyInt DWC_GetMatchStringValue DWC_GetMatchIntValue

Revision History

1.4.20
Noted that it takes some time for the addition of a condition key to be propagated to the server.

CONFIDENTIAL