This method of the DirectPlay2 Class retrieves player data for the specified player ID.
public void getPlayerData(int playerId, byte[] data, int[] dataSize, int flags);
playerId | ID of the player for which data is being requested. |
data | Application-specific player data. Set this parameter to null to request only the size of data. The dataSize parameter will be set to the size required to hold the data. |
dataSize | The size of the buffer before calling this method. After the method returns, this parameter will be set to the size, in bytes, of the group data. If the buffer was too small (DPERR_BUFFERTOOSMALL), this parameter will be set to the buffer size required. |
flags | If this parameter is set to 0, the remote data will be retrieved.
Retrieves the current data from the remote shared data space. Retrieves the local data set by this application. |