コード例 #1
0
ファイル: GGPO.cs プロジェクト: Krankdud/GGPOSharp
 /// <summary>
 /// Used to fetch some statistics about the quality of the network connection.
 /// </summary>
 /// <param name="playerHandle">The player handle returned from the AddPlayer function
 /// you used to add the remote player.</param>
 /// <param name="stats">Out parameter to the network statistics.</param>
 /// <returns></returns>
 public ErrorCode GetNetworkStats(int playerHandle, out GGPONetworkStats stats)
 {
     unsafe
     {
         return(ggpo_get_network_stats(session, playerHandle, out stats));
     }
 }
コード例 #2
0
 /// <summary>
 /// Used to fetch some statistics about the quality of the network connection.
 /// </summary>
 /// <param name="playerHandle">The player handle returned from the AddPlayer function you used
 /// to add the remote player.</param>
 /// <param name="stats">Out parameter to the network statistics.</param>
 /// <returns><see cref="GGPOErrorCode"/> result of the operation.</returns>
 public virtual GGPOErrorCode GetNetworkStats(int playerHandle, out GGPONetworkStats stats)
 {
     stats = null;
     return(GGPOErrorCode.OK);
 }
コード例 #3
0
ファイル: GGPO.cs プロジェクト: Krankdud/GGPOSharp
 private static unsafe extern ErrorCode ggpo_get_network_stats(GGPOSession *session,
                                                               int player,
                                                               out GGPONetworkStats stats);