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 void IncrementStat(NetworkDetailStats.NetworkDirection direction, string entryName, int amount)
 {
   NetworkDetailStats.NetworkOperationEntryDetails operationEntryDetails;
   if (this.m_Entries.ContainsKey(entryName))
   {
     operationEntryDetails = this.m_Entries[entryName];
   }
   else
   {
     operationEntryDetails = new NetworkDetailStats.NetworkOperationEntryDetails();
     operationEntryDetails.m_EntryName = entryName;
     this.m_Entries[entryName] = operationEntryDetails;
   }
   operationEntryDetails.AddStat(direction, amount);
   switch (direction)
   {
     case NetworkDetailStats.NetworkDirection.Incoming:
       this.totalIn += (float) amount;
       break;
     case NetworkDetailStats.NetworkDirection.Outgoing:
       this.totalOut += (float) amount;
       break;
   }
 }
 public void AddStat(NetworkDetailStats.NetworkDirection direction, int amount)
 {
   int tick = (int) NetworkDetailStats.s_LastTickTime % 20;
   switch (direction)
   {
     case NetworkDetailStats.NetworkDirection.Incoming:
       this.m_IncomingTotal += amount;
       this.m_IncomingSequence.Add(tick, amount);
       break;
     case NetworkDetailStats.NetworkDirection.Outgoing:
       this.m_OutgoingTotal += amount;
       this.m_OutgoingSequence.Add(tick, amount);
       break;
   }
 }
            public void SetStat(NetworkDetailStats.NetworkDirection direction, string entryName, int amount)
            {
                NetworkDetailStats.NetworkOperationEntryDetails details;
                if (this.m_Entries.ContainsKey(entryName))
                {
                    details = this.m_Entries[entryName];
                }
                else
                {
                    details = new NetworkDetailStats.NetworkOperationEntryDetails {
                        m_EntryName = entryName
                    };
                    this.m_Entries[entryName] = details;
                }
                details.AddStat(direction, amount);
                switch (direction)
                {
                    case NetworkDetailStats.NetworkDirection.Incoming:
                        this.totalIn = amount;
                        break;

                    case NetworkDetailStats.NetworkDirection.Outgoing:
                        this.totalOut = amount;
                        break;
                }
            }
 public void IncrementStat(NetworkDetailStats.NetworkDirection direction, string entryName, int amount)
 {
     NetworkDetailStats.NetworkOperationEntryDetails details;
     if (this.m_Entries.ContainsKey(entryName))
     {
         details = this.m_Entries[entryName];
     }
     else
     {
         details = new NetworkDetailStats.NetworkOperationEntryDetails {
             m_EntryName = entryName
         };
         this.m_Entries[entryName] = details;
     }
     details.AddStat(direction, amount);
     if (direction != NetworkDetailStats.NetworkDirection.Incoming)
     {
         if (direction == NetworkDetailStats.NetworkDirection.Outgoing)
         {
             this.totalOut += amount;
         }
     }
     else
     {
         this.totalIn += amount;
     }
 }
 public void AddStat(NetworkDetailStats.NetworkDirection direction, int amount)
 {
     int tick = ((int) NetworkDetailStats.s_LastTickTime) % 20;
     if (direction != NetworkDetailStats.NetworkDirection.Incoming)
     {
         if (direction == NetworkDetailStats.NetworkDirection.Outgoing)
         {
             this.m_OutgoingTotal += amount;
             this.m_OutgoingSequence.Add(tick, amount);
         }
     }
     else
     {
         this.m_IncomingTotal += amount;
         this.m_IncomingSequence.Add(tick, amount);
     }
 }