public GameServerItem GetServerDetails(ServerListRequestHandle request, int server)
        {
            IntPtr returnValue;

            returnValue = NativeMethods.MatchmakingServers_GetServerDetails(request.AsUInt32, server);
            return(GameServerItem.Create(returnValue, NativeMethods.MatchmakingServers_GetGameServerItemSize()));
        }
 public void ReleaseRequest(ServerListRequestHandle serverListRequest)
 {
     NativeMethods.MatchmakingServers_ReleaseRequest(serverListRequest.AsUInt32);
 }
 public void RefreshServer(ServerListRequestHandle request, int server)
 {
     NativeMethods.MatchmakingServers_RefreshServer(request.AsUInt32, server);
 }
 public int GetServerCount(ServerListRequestHandle request)
 {
     return(NativeMethods.MatchmakingServers_GetServerCount(request.AsUInt32));
 }
 /// <summary>
 /// Server has failed to respond
 /// </summary>
 /// <param name="request"></param>
 /// <param name="server"></param>
 protected abstract void ServerFailedToRespond(ServerListRequestHandle request, int server);
 protected override void ServerFailedToRespond(ServerListRequestHandle request, int server)
 {
     //Console.WriteLine("ServerFailedToRespond: request " + request + " server " + server);
     ++failedCount;
 }
 public int GetServerCount(ServerListRequestHandle request)
 {
     return NativeMethods.MatchmakingServers_GetServerCount(request.AsUInt32);
 }
 public void RefreshQuery(ServerListRequestHandle request)
 {
     NativeMethods.MatchmakingServers_RefreshQuery(request.AsUInt32);
 }
 public void ReleaseRequest(ServerListRequestHandle serverListRequest)
 {
     NativeMethods.MatchmakingServers_ReleaseRequest(serverListRequest.AsUInt32);
 }
Beispiel #10
0
 protected override void RefreshComplete(ServerListRequestHandle request, MatchMakingServerResponse response)
 {
     Console.WriteLine("RefreshComplete: request " + request + " response " + response +
                       " respondCount " + respondCount + " failedCount " + failedCount);
 }
Beispiel #11
0
 protected override void ServerFailedToRespond(ServerListRequestHandle request, int server)
 {
     //Console.WriteLine("ServerFailedToRespond: request " + request + " server " + server);
     ++failedCount;
 }
 /// <summary>
 /// A list refresh you had initiated is now 100% completed
 /// </summary>
 /// <param name="request"></param>
 /// <param name="response"></param>
 protected abstract void RefreshComplete(ServerListRequestHandle request, MatchMakingServerResponse response);
 /// <summary>
 /// Server has failed to respond
 /// </summary>
 /// <param name="request"></param>
 /// <param name="server"></param>
 protected abstract void ServerFailedToRespond(ServerListRequestHandle request, int server);
 /// <summary>
 /// Server has responded ok with updated data
 /// </summary>
 /// <param name="request"></param>
 /// <param name="server"></param>
 protected abstract void ServerResponded(ServerListRequestHandle request, int server);
 /// <summary>
 /// A list refresh you had initiated is now 100% completed
 /// </summary>
 /// <param name="request"></param>
 /// <param name="response"></param>
 protected abstract void RefreshComplete(ServerListRequestHandle request, MatchMakingServerResponse response);
 public GameServerItem GetServerDetails(ServerListRequestHandle request, int server)
 {
     IntPtr returnValue;
     returnValue = NativeMethods.MatchmakingServers_GetServerDetails(request.AsUInt32, server);
     return GameServerItem.Create(returnValue, NativeMethods.MatchmakingServers_GetGameServerItemSize());
 }
 public void CancelQuery(ServerListRequestHandle request)
 {
     NativeMethods.MatchmakingServers_CancelQuery(request.AsUInt32);
 }
 public void CancelQuery(ServerListRequestHandle request)
 {
     NativeMethods.MatchmakingServers_CancelQuery(request.AsUInt32);
 }
 public bool IsRefreshing(ServerListRequestHandle request)
 {
     return NativeMethods.MatchmakingServers_IsRefreshing(request.AsUInt32);
 }
 public void RefreshQuery(ServerListRequestHandle request)
 {
     NativeMethods.MatchmakingServers_RefreshQuery(request.AsUInt32);
 }
 public void RefreshServer(ServerListRequestHandle request, int server)
 {
     NativeMethods.MatchmakingServers_RefreshServer(request.AsUInt32, server);
 }
 public bool IsRefreshing(ServerListRequestHandle request)
 {
     return(NativeMethods.MatchmakingServers_IsRefreshing(request.AsUInt32));
 }
 protected override void RefreshComplete(ServerListRequestHandle request, MatchMakingServerResponse response)
 {
     Console.WriteLine("RefreshComplete: request " + request + " response " + response +
         " respondCount " + respondCount + " failedCount " + failedCount);
 }
 /// <summary>
 /// Server has responded ok with updated data
 /// </summary>
 /// <param name="request"></param>
 /// <param name="server"></param>
 protected abstract void ServerResponded(ServerListRequestHandle request, int server);