diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs b/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs new file mode 100644 index 00000000..4ec0de3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs @@ -0,0 +1,42 @@ +using System;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class ForgeAttrDataMgr : EquipAttrDataMgr
+ {
+ private ForgeAttributes m_forgeTab = null;
+
+ public ForgeAttrDataMgr(ForgeAttributes table)
+ {
+ this.m_forgeTab = table;
+ }
+
+ protected override void SetAttrByItemId(uint itemId)
+ {
+ bool flag = this.m_forgeTab == null;
+ if (!flag)
+ {
+ for (int i = 0; i < this.m_forgeTab.Table.Length; i++)
+ {
+ ForgeAttributes.RowData rowData = this.m_forgeTab.Table[i];
+ bool flag2 = rowData.EquipID == itemId;
+ if (flag2)
+ {
+ bool flag3 = !this.m_attrDic.ContainsKey(rowData.EquipID);
+ if (flag3)
+ {
+ EquipSlotAttrDatas equipSlotAttrDatas = new EquipSlotAttrDatas(rowData.EquipID);
+ equipSlotAttrDatas.Add(rowData);
+ this.m_attrDic.Add(rowData.EquipID, equipSlotAttrDatas);
+ }
+ else
+ {
+ this.m_attrDic[rowData.EquipID].Add(rowData);
+ }
+ }
+ }
+ }
+ }
+ }
+}
|