| 1234567891011121314151617181920212223242526272829303132333435363738 | 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);                    PromptController.Instance.ShowFloatTextPrompt("保存成功", MessageType.SUCCESS);                }            }        }    }}
 |