예제 #1
0
        public static EquipInfo SwichEquipInfo(ItemAsset.ItemObject obj)
        {
            if (obj == null)
            {
                return(null);
            }


            switch (obj.protoData.id)
            {
            //手榴弹处理
            case  60: EInfo.SetEquipInfo(EequipEditorType.gun, EeqSelect.combat);
                return(EInfo);

            //能源盾
            case 167:
            case 168:
            case 169:
            case 170:
                EInfo.SetEquipInfo(EequipEditorType.energy_sheild, EeqSelect.energy_sheild);
                return(EInfo);

            //电池
            case 228: EInfo.SetEquipInfo(EequipEditorType.battery, EeqSelect.energy);
                return(EInfo);

            default:
                break;
            }

            EequipEditorType type = (EequipEditorType)obj.protoData.editorTypeId;

            switch (type)
            {
            case EequipEditorType.sword:
                EInfo.SetEquipInfo(type, EeqSelect.combat);
                break;

            case EequipEditorType.axe:
                EInfo.SetEquipInfo(type, EeqSelect.tool);
                break;

            case EequipEditorType.bow:
                EInfo.SetEquipInfo(type, EeqSelect.combat);
                break;

            case EequipEditorType.gun:
                EInfo.SetEquipInfo(type, EeqSelect.combat);
                break;

            case EequipEditorType.shield:
                EInfo.SetEquipInfo(type, EeqSelect.protect);
                break;

            default:
                return(null);
            }

            return(EInfo);
        }
예제 #2
0
 public void SetEquipInfo(EequipEditorType equipType, EeqSelect select)
 {
     _equipType  = equipType;
     _selectType = select;
 }