예제 #1
0
        /// <summary>
        /// Sets the Value of selected slot to null.
        /// </summary>
        /// <param name="type">Type of the Clothing to DeEquip</param>
        /// <returns>Previous value of changed Slot</returns>
        public Clothing DeEquip(ClothingTypes type)
        {
            Clothing oldClothing = null;

            switch (type)
            {
            case ClothingTypes.Shirt:
                oldClothing = this.Shirt;
                this.Shirt  = null;
                break;

            case ClothingTypes.Trousers:
                oldClothing   = this.Trousers;
                this.Trousers = null;
                break;
            }


            return(oldClothing);
        }
예제 #2
0
 public Clothing(string name, float weight, ItemQuality quality, ClothingTypes type) : base(name, weight, quality)
 {
     this.Type = type;
 }