123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices.ComTypes;
- using System.Text;
- using ET;
- namespace GFGGame
- {
- public class CustomSuitSProxy
- {
- public static async ETTask UpdateCustomSuit(int index, List<int> arrayList, int bgID = 0, int suitId = 0, bool pic = false)
- {
- CustomSuitProto suitProto = new CustomSuitProto();
- suitProto.Pos = index;
- suitProto.BgId = bgID;
- suitProto.SuitId = suitId;
- suitProto.Pic = pic;
- foreach (var equipId in arrayList)
- {
- suitProto.EquipIds.Add(equipId);
- }
- M2C_SaveCustomSuit response = (M2C_SaveCustomSuit) await MessageHelper.SendToServer(new C2M_SaveCustomSuit()
- {
- suit = suitProto
- });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- CustomSuitDataManager.SaveSuit(index, arrayList, bgID, suitId, pic);
- }
- }
- }
- }
- }
|