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)); }
public static PaperdollBounds GetPaperdollBounds(this Layer layer) { return(PaperdollBounds.Find(layer)); }