예제 #1
0
 /// <summary>
 /// Adds stats from <paramref name="source"/> to saved session stats
 /// </summary>
 /// <param name="source">Stats to add</param>
 public void AssignMidGameSavedSessionStats(AdvancedGameStats source)
 {
     if (!this.IsInSession)
     {
         return;
     }
     if (this.m_savedSessionStats != null)
     {
         this.m_savedSessionStats.AddStats(source);
     }
 }
예제 #2
0
 public void AddStats(AdvancedGameStats otherStats)
 {
     foreach (KeyValuePair <CustomTrackedStats, float> keyValuePair in otherStats.stats)
     {
         this.IncrementStat(keyValuePair.Key, keyValuePair.Value);
     }
     foreach (KeyValuePair <CustomTrackedMaximums, float> keyValuePair2 in otherStats.maxima)
     {
         this.SetMax(keyValuePair2.Key, keyValuePair2.Value);
     }
     foreach (CustomCharacterSpecificGungeonFlags item in otherStats.m_flags)
     {
         this.m_flags.Add(item);
     }
 }