Ejemplo n.º 1
0
        /// <summary>
        /// Gets the ID for appearances
        /// </summary>
        /// <param name="wearType">the slot</param>
        /// <returns>the view ID</returns>
        internal int GetViewId(Item.WearType wearType)
        {
            if (this.Equip[(int)wearType] > 0)
            {
                return(this.Inventory[this.Equip[(int)wearType]].Code);
            }

            switch (wearType)
            {
            case Item.WearType.Armor: return(this.BodyId);

            case Item.WearType.Glove: return(this.HandsId);

            case Item.WearType.Boots: return(this.FeetId);

            case Item.WearType.Face: return(this.FaceId);

            case Item.WearType.Hair: return(this.HairId);

            default: return(0);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if there's an item equipped at this position
 /// </summary>
 /// <param name="pos"></param>
 /// <returns></returns>
 internal bool IsEquipped(Item.WearType pos)
 {
     return(this.Equip[(int)pos] > 0);
 }