示例#1
0
 public StatInstance(StatInstance obj)
 {
     stats.Clear();
     foreach (StatType type in obj.stats.Keys)
     {
         StatInternal stat = obj.stats[type];
         stats.Add(type, new StatInternal(stat.Type, stat.Value));
     }
 }
示例#2
0
        public StatInstance GetStatInstance()
        {
            baseStats.UseDefaults();
            StatInstance returnStats = new StatInstance(baseStats);

            foreach (StatModifier modifier in GetModifiers())
            {
                returnStats.ApplyMod(modifier);
            }
            return(returnStats);
        }
示例#3
0
 public void SetStats(Stats stats)
 {
     modifiers    = stats.modifiers;
     baseStats    = stats.baseStats;
     mutableStats = stats.mutableStats;
 }