|
@@ -1,5 +1,6 @@
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
+using Assets.Game.HotUpdate.Data;
|
|
|
using ET;
|
|
|
|
|
|
namespace GFGGame
|
|
@@ -31,5 +32,39 @@ namespace GFGGame
|
|
|
//MiniGameDateManager.Instance.NpcInfoList = response.NpcVisits;
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ //获取合成列表
|
|
|
+ public static async ETTask<bool> ReqGetItemSyntheticInfos(int activityId)
|
|
|
+ {
|
|
|
+ S2C_GetItemSyntheticInfos response = null;
|
|
|
+ response = (S2C_GetItemSyntheticInfos)await MessageHelper.SendToServer(new C2S_GetItemSyntheticInfos() { ActivityId = activityId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ ActivityTeaDataManager.Instance.ItemSynthetics = response.ItemSynthetics;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ //部件合成
|
|
|
+ public static async ETTask<bool> ReqItemSynthetic(int itemId)
|
|
|
+ {
|
|
|
+ S2C_ItemSynthetic response = null;
|
|
|
+ response = (S2C_ItemSynthetic)await MessageHelper.SendToServer(new C2S_ItemSynthetic() { ItemId = itemId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ ActivityTeaDataManager.Instance.ItemSynthetics = response.ItemSynthetics;
|
|
|
+ BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.BonusList));
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|