Пример #1
0
 private void executeAllQueriesInQueue()
 {
     if (networkState != NetworkState.NET_DISABLED && receiveQueue != null)
     {
         for (; receiveQueue.Count > 0;)
         {
             QueuePack queue = receiveQueue.Dequeue();
             Q_OBJECT  query = Q_OBJECT.Deserialize(queue.qp.json, queue.qp.type);
             query.executeQuery(queue);
         }
     }
 }
 private void ExecuteAllQueriesInQueue()
 {
     if (networkState != NetworkState.NET_DISABLED && receiveQueue != null)
     {
         for (; receiveQueue.Count > 0;)
         {
             var queue = receiveQueue.Dequeue();
             var query = Q_OBJECT.Deserialize(queue.qp.json, queue.qp.type);
             query.ExecuteQuery(queue);
             if (networkState == NetworkState.NET_DISABLED)
             {
                 return;
             }
         }
     }
 }