Пример #1
0
        public static long GetCollectiveScore(Mobile m)
        {
            if (OverallTotal.ContainsKey(m))
            {
                return(OverallTotal[m]);
            }

            return(0);
        }
Пример #2
0
 public static void AddToOverallTotal(Dictionary <Mobile, long> score)
 {
     foreach (KeyValuePair <Mobile, long> kvp in score)
     {
         if (!OverallTotal.ContainsKey(kvp.Key))
         {
             OverallTotal[kvp.Key] = kvp.Value;
         }
         else
         {
             OverallTotal[kvp.Key] += kvp.Value;
         }
     }
 }