コード例 #1
0
 protected override void OnRegisterClientSafe(ILowProtocol protocol, Guid clientId)
 {
     base.OnRegisterClientSafe(protocol, clientId);
     if (m_matchServer != null)
     {
         m_matchServer.RegisterClient(clientId, error =>
         {
             if (m_matchServer.HasError(error))
             {
                 Log.Error("m_matchServer.RegisterClient. This method should never fail but it does.. " + error.ToString());
             }
             ;
         });
     }
 }
コード例 #2
0
 private void SubmitResponse(ClientRequest request)
 {
     m_matchServer.SubmitResponse(m_gSettings.ClientId, request, (error, response) =>
     {
         if (m_matchServer.HasError(error))
         {
             if (Error != null)
             {
                 Error(error);
             }
         }
     });
 }