Пример #1
0
        public static PaperdollBounds GetPaperdollBounds(this Item item)
        {
            if (item == null)
            {
                return(PaperdollBounds.Empty);
            }

            if (item.Layer == Layer.TwoHanded)
            {
                if (item is BaseRanged)
                {
                    return(PaperdollBounds.MainHand);
                }

                if (item is BaseEquipableLight || item is BaseShield)
                {
                    return(PaperdollBounds.OffHand);
                }
            }

            return(PaperdollBounds.Find(item.Layer));
        }
Пример #2
0
 public static PaperdollBounds GetPaperdollBounds(this Layer layer)
 {
     return(PaperdollBounds.Find(layer));
 }