Exemplo n.º 1
0
        public void ClearModPair(int slotNumber, ItemRepresentation owner)
        {
            switch (slotNumber)
            {
            case 0:
            {
                owner.ClearModPair(ref this.a);
                break;
            }

            case 1:
            {
                owner.ClearModPair(ref this.b);
                break;
            }

            case 2:
            {
                owner.ClearModPair(ref this.c);
                break;
            }

            case 3:
            {
                owner.ClearModPair(ref this.d);
                break;
            }

            case 4:
            {
                owner.ClearModPair(ref this.e);
                break;
            }

            default:
            {
                throw new IndexOutOfRangeException();
            }
            }
        }