public void registerRPCcall(IAsyncResult RemAr, Type classType)
 {
     lock (syncLock)
     {
         if (this.SessionID == 0)
         {
             this.RTTAverageTime++;
         }
         CallBackEntryClass item = new CallBackEntryClass {
             ar = RemAr,
             classType = classType,
             data = null,
             timer = DXTimer.GetCurrentMilliseconds()
         };
         if (!this.inResultsProcessing)
         {
             int count = this.resultList.Count;
             bool flag = false;
             for (int i = 0; i < count; i++)
             {
                 if (this.resultList[i].state == 0)
                 {
                     this.resultList[i] = item;
                     flag = true;
                     break;
                 }
             }
             if (!flag)
             {
                 this.resultList.Add(item);
             }
         }
         else
         {
             this.queuedResultList.Add(item);
         }
     }
 }
 private bool packetTimeOut(double timeTaken, CallBackEntryClass cbe)
 {
     double num = 180000.0;
     if (((cbe.classType == typeof(GetVillageNames_ReturnType)) || (cbe.classType == typeof(GetVillageFactionChanges_ReturnType))) || ((cbe.classType == typeof(FullTick_ReturnType)) || (cbe.classType == typeof(GetAllVillageOwnerFactions_ReturnType))))
     {
         num = 600000.0;
     }
     return (timeTaken > num);
 }