示例#1
0
文件: ItemExt.cs 项目: LordEnigma/UO
        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
文件: LayerExt.cs 项目: LordEnigma/UO
 public static PaperdollBounds GetPaperdollBounds(this Layer layer)
 {
     return(PaperdollBounds.Find(layer));
 }