示例#1
0
 public void RefreshStats()
 {
     changeStats = true;
     GetStats();
     if (!Current.TempLoad)
     {
         OnRunesChanged?.Invoke(this, new RuneChangeEventArgs()
         {
         });
     }
 }
示例#2
0
        public Rune RemoveRune(int slot)
        {
            var r = Current.RemoveRune(slot);

            changeStats = true;
            if (!Current.TempLoad)
            {
                OnRunesChanged?.Invoke(this, new RuneChangeEventArgs()
                {
                    OldRune = r
                });
            }
            return(r);
        }
示例#3
0
        // put this rune on the current build
        public Rune ApplyRune(Rune rune, int checkOn = 2)
        {
            var old = Current.AddRune(rune, checkOn);

            changeStats = true;
            if (!Current.TempLoad)
            {
                OnRunesChanged?.Invoke(this, new RuneChangeEventArgs()
                {
                    NewRune = rune, OldRune = old
                });
            }
            return(old);
        }