| 123456789101112131415161718192021222324252627282930 | 
							- using System;
 
- using GFGGame;
 
- namespace ET
 
- {
 
-     public static class ItemHelper
 
-     {
 
-         public static async ETTask<int> GetItemAttributeInfos()
 
-         {
 
-             M2C_GetItemAttributeInfos m2C_GetItemAttributeInfos = null;
 
-             Session session = null;
 
-             try
 
-             {
 
-                 session = GameGlobal.zoneScene.GetComponent<SessionComponent>().GateSession;
 
-                 m2C_GetItemAttributeInfos = (M2C_GetItemAttributeInfos)await session.Call(new C2M_GetItemAttributeInfos());
 
-             }
 
-             catch(Exception e)
 
-             {
 
-                 Log.Debug(e.ToString());
 
-                 return ErrorCode.ERR_NetWorkError;
 
-             }
 
-             if(m2C_GetItemAttributeInfos.Error != ErrorCode.ERR_Success)
 
-             {
 
-                 return m2C_GetItemAttributeInfos.Error;
 
-             }
 
-             ItemDataManager.InitServerDataItemAttribute(m2C_GetItemAttributeInfos.ItemAtrributes);
 
-             return ErrorCode.ERR_Success;
 
-         }
 
-     }
 
- }
 
 
  |