DWC_GetMatchIntValue

Syntax

#include <dwc.h>

int DWC_GetMatchIntValue(int index,
                         const char *keyString,
                         int idefault);

Arguments

index Index of matchmaking candidate players. The index argument of the evaluation callback is passed unchanged.
keyString Pointer to the character string for identifying the key.
idefault Default value if the player does not have the specified key.

Return Values

Value corresponding to the specified key that the matchmaking candidate player has. If the player does not have a key, the value passed to the idefault argument is returned.

Description

Gets the value that corresponds to the matchmaking condition key.

This function is guaranteed only for use inside the player evaluation callback. The returned value is undefined if the function is called from outside of the callback.

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.

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