internal void CountMessageSent(NetMessage msg, int numBytes) { m_messagesSent++; if (msg.m_type == NetMessageLibraryType.User) { m_userMessagesSent++; m_userBytesSent += numBytes; m_userTypeMessagesSent[(int)msg.m_sequenceChannel]++; } NetConnectionStatistics window = GetCurrentWindow(NetTime.Now); if (window != null) { window.CountMessageSent(msg, numBytes); } }