示例#1
0
        public bool Add(ItemObject obj)
        {
            if (obj == null)
            {
                return(false);
            }

            EquipInfo info = SelectItem.SwichEquipInfo(obj);

            if (info != null)
            {
                mItemsDic[(int)info._selectType].Add(obj);

                if (obj.protoData.weaponInfo != null && !mAtkItems[(int)obj.protoData.weaponInfo.attackModes[0].type].Contains(obj))
                {
                    mAtkItems[(int)obj.protoData.weaponInfo.attackModes[0].type].Add(obj);
                }

                return(true);
            }
            return(false);
        }
示例#2
0
        public static EeqSelect GetEquipSelect(ItemAsset.ItemObject obj)
        {
            EquipInfo info = SwichEquipInfo(obj);

            return(info == null ? EeqSelect.None : info._selectType);
        }