public static void ResetAll()
 {
     using (Dictionary <short, NetworkDetailStats.NetworkOperationDetails> .ValueCollection.Enumerator enumerator = NetworkDetailStats.m_NetworkOperations.Values.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             NetworkDetailStats.NetworkOperationDetails current = enumerator.Current;
             NetworkTransport.SetPacketStat(0, (int)current.MsgId, 0, 1);
             NetworkTransport.SetPacketStat(1, (int)current.MsgId, 0, 1);
         }
     }
     NetworkDetailStats.m_NetworkOperations.Clear();
 }
 public static void IncrementStat(NetworkDetailStats.NetworkDirection direction, short msgId, string entryName, int amount)
 {
   NetworkDetailStats.NetworkOperationDetails operationDetails;
   if (NetworkDetailStats.m_NetworkOperations.ContainsKey(msgId))
   {
     operationDetails = NetworkDetailStats.m_NetworkOperations[msgId];
   }
   else
   {
     operationDetails = new NetworkDetailStats.NetworkOperationDetails();
     operationDetails.MsgId = msgId;
     NetworkDetailStats.m_NetworkOperations[msgId] = operationDetails;
   }
   operationDetails.IncrementStat(direction, entryName, amount);
 }
 public static void IncrementStat(NetworkDetailStats.NetworkDirection direction, short msgId, string entryName, int amount)
 {
     NetworkDetailStats.NetworkOperationDetails networkOperationDetails;
     if (NetworkDetailStats.m_NetworkOperations.ContainsKey(msgId))
     {
         networkOperationDetails = NetworkDetailStats.m_NetworkOperations[msgId];
     }
     else
     {
         networkOperationDetails       = new NetworkDetailStats.NetworkOperationDetails();
         networkOperationDetails.MsgId = msgId;
         NetworkDetailStats.m_NetworkOperations[msgId] = networkOperationDetails;
     }
     networkOperationDetails.IncrementStat(direction, entryName, amount);
 }