| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- using ET;
 
- namespace GFGGame
 
- {
 
-     public class ItemProxy
 
-     {
 
-         public static async ETTask<bool> GetItemInfos()
 
-         {
 
-             GameGlobal.DataInited = false;
 
-             M2C_GetItemInfos response = null;
 
-             response = (M2C_GetItemInfos)await MessageHelper.SendToServer(new C2M_GetItemInfos());
 
-             if (response != null)
 
-             {
 
-                 if (response.Error == ErrorCode.ERR_Success)
 
-                 {
 
-                     //物品兑换
 
-                     for (int i = 0; i < response.KsItemExchange.Count; i++)
 
-                     {
 
-                         ItemDataManager.InitItemExchange(response.KsItemExchange[i], response.VsItemExchange[i]);
 
-                     }
 
-                     //服装数据与物品通步
 
-                     DressUpMenuSuitDataManager.InitData();
 
-                     DressUpMenuItemDataManager.InitData();
 
-                     //初始化物品
 
-                     ItemDataManager.InitServerData(response.Items);
 
-                     //自定义套装
 
-                     CustomSuitDataManager.InitServerData(response.CustomSuits);
 
-                     CustomSuitDataManager.currentIndex=response.CustomSuitPos;
 
-                     //!!!必须放在最后,标记数据初始化完成
 
-                     GameGlobal.DataInited = true;
 
-                     return true;
 
-                 }
 
-             }
 
-             return false;
 
-         }
 
-     }
 
- }
 
 
  |