Пример #1
0
 public void SetQuickSlotByNumber(Equipment.QuickSlot xSlot, int iNum)
 {
     switch (iNum)
     {
     case 1:
         this.xQuickSlot1 = xSlot;
         return;
     case 2:
         this.xQuickSlot2 = xSlot;
         return;
     case 3:
         this.xQuickSlot3 = xSlot;
         return;
     case 4:
         this.xQuickSlot4 = xSlot;
         return;
     case 5:
         this.xQuickSlot5 = xSlot;
         return;
     case 6:
         this.xQuickSlot6 = xSlot;
         return;
     case 7:
         this.xQuickSlot7 = xSlot;
         return;
     case 8:
         this.xQuickSlot8 = xSlot;
         return;
     case 9:
         this.xQuickSlot9 = xSlot;
         return;
     default:
         this.xQuickSlot10 = xSlot;
         return;
     }
 }
Пример #2
0
 public void EmptyQuickslotsWithSpell(SpellCodex.SpellTypes enSpell)
 {
     if (this.xQuickSlot1.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot1 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot2.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot2 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot3.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot3 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot4.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot4 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot5.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot5 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot6.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot6 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot7.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot7 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot8.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot8 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot9.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot9 = new Equipment.QuickSlot();
     }
     if (this.xQuickSlot10.GetSpellTypeIfAny() == enSpell)
     {
         this.xQuickSlot10 = new Equipment.QuickSlot();
     }
 }