From 283a720f06b0834b71ce8413a28caf24eeedc017 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 19 二月 2019 23:43:01 +0800
Subject: [PATCH] 3335 物品管理相关功能重构。

---
 UI/Common/UI3DModelExhibition.cs |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/UI/Common/UI3DModelExhibition.cs b/UI/Common/UI3DModelExhibition.cs
index 6696f4e..596d4aa 100644
--- a/UI/Common/UI3DModelExhibition.cs
+++ b/UI/Common/UI3DModelExhibition.cs
@@ -183,21 +183,21 @@
         {
             var clothes = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Clothes);
             var flashClothes = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionClothes);
-            var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
-            var flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
+            var clothesId = clothes == null ? 0 : (int)clothes.itemId;
+            var flashClothesId = flashClothes == null ? 0 : flashClothes.itemId;
 
             var weapon = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Weapon);
             var flashWeapon = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionWeapon);
-            var weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
-            var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
+            var weaponId = weapon == null ? 0 : (int)weapon.itemId;
+            var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemId;
 
             var wings = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Wing);
-            var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
+            var wingsId = wings == null ? 0 : (int)wings.itemId;
 
             var flahsSecondary = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionWeapon2);
             var secondary = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Weapon2);
-            var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
-            var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemInfo.ItemID;
+            var secondaryId = secondary == null ? 0 : (int)secondary.itemId;
+            var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemId;
 
             int suitLevel = 0;
             if (clothes != null)
@@ -247,30 +247,30 @@
             {
                 clothes = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Clothes);
                 var flashClothes = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionClothes);
-                clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
-                flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
+                clothesId = clothes == null ? 0 : (int)clothes.itemId;
+                flashClothesId = flashClothes == null ? 0 : flashClothes.itemId;
             }
 
             if (exceptEquip != RoleEquipType.Weapon)
             {
                 var flashWeapon = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionWeapon);
                 var weapon = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Weapon);
-                weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
-                flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
+                weaponId = weapon == null ? 0 : (int)weapon.itemId;
+                flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemId;
             }
 
             if (exceptEquip != RoleEquipType.Wing)
             {
                 var wings = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Wing);
-                wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
+                wingsId = wings == null ? 0 : (int)wings.itemId;
             }
 
             if (exceptEquip != RoleEquipType.Weapon2)
             {
                 var flashSecondary = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionWeapon2);
                 var secondary = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Weapon2);
-                secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
-                flashSecondaryId = flashSecondary == null ? 0 : flashSecondary.itemInfo.ItemID;
+                secondaryId = secondary == null ? 0 : (int)secondary.itemId;
+                flashSecondaryId = flashSecondary == null ? 0 : flashSecondary.itemId;
             }
 
             var suitLevel = 0;
@@ -373,21 +373,21 @@
         {
             var clothes = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Clothes);
             var flashClothes = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionClothes);
-            var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
-            var flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
+            var clothesId = clothes == null ? 0 : (int)clothes.itemId;
+            var flashClothesId = flashClothes == null ? 0 : flashClothes.itemId;
 
             var weapon = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Weapon);
             var flashWeapon = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionWeapon);
-            var weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
-            var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
+            var weaponId = weapon == null ? 0 : (int)weapon.itemId;
+            var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemId;
 
             var wings = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Wing);
-            var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
+            var wingsId = wings == null ? 0 : (int)wings.itemId;
 
             var flahsSecondary = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.FashionWeapon2);
             var secondary = playerPack.GetItemModelByIndex(PackType.Equip, (int)RoleEquipType.Weapon2);
-            var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
-            var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemInfo.ItemID;
+            var secondaryId = secondary == null ? 0 : (int)secondary.itemId;
+            var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemId;
 
             int suitLevel = 0;
             if (clothes != null)

--
Gitblit v1.8.0