Beispiel #1
0
 public void Merge(StatisticsEntry other)
 {
     foreach (var kvp in other.m_stats)
     {
         Add(kvp.Key, kvp.Value);
     }
 }
Beispiel #2
0
        private StatisticsEntry GetEntryForPlayer(string playerId)
        {
            if (!m_playerStats.ContainsKey(playerId))
            {
                m_playerStats[playerId] = new StatisticsEntry();
            }

            return(m_playerStats[playerId]);
        }