Beispiel #1
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);
        }
        public void RemoveRuneTest()
        {
            Loadout load = new Loadout();

            load.AddRune(TestData.Rune1());
            load.AddRune(TestData.Rune2());
            load.AddRune(TestData.Rune3());
            load.AddRune(TestData.Rune4());
            load.AddRune(TestData.Rune5());
            load.AddRune(TestData.Rune6());

            load.RemoveRune(1);
            load.RemoveRune(2);
            load.RemoveRune(3);
            load.RemoveRune(4);
            load.RemoveRune(5);
            load.RemoveRune(6);

            Assert.AreEqual(0, load.RuneCount);
        }