FieldSProxy.cs 773 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using ET;
  3. using GFGGame;
  4. namespace GFGGame
  5. {
  6. public static class FieldSProxy
  7. {
  8. public static async ETTask<bool> ClothingDecompose(List<int> itemIds, List<int> itemNums)
  9. {
  10. M2C_ClothingDecompose response = null;
  11. response = (M2C_ClothingDecompose)await MessageHelper.SendToServer(new C2M_ClothingDecompose() { itemIds = itemIds, itemNums = itemNums });
  12. if (response != null)
  13. {
  14. if (response.Error == ErrorCode.ERR_Success)
  15. {
  16. BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.bonusList));
  17. return true;
  18. }
  19. }
  20. return false;
  21. }
  22. }
  23. }