void SendChangeItemPlaceToServer(ContainerBoxSlot_V2 fromSlot, ContainerBoxSlot_V2 toSlot) { var dwContainerID = ContainerInfomanager.Instance.sBuildContainerClientContexts.First(P => P.dwContainerName == 2).dwContainerID; SSyncContainerGoods_CS sSyncContainerGoods_CS = new SSyncContainerGoods_CS() { ContainerID = dwContainerID, dwSrcContainerID = dwContainerID, bySrcPlace = (byte)(fromSlot.MyContainerBoxSlotData.CurrentPlace - 1), dwDstContainerID = dwContainerID, byDstPlace = (byte)(toSlot.MyContainerBoxSlotData.CurrentPlace - 1), }; //TraceUtil.Log(string.Format("发送物品栏位置改变消息到服务器:{0},{1}->{2}", sSyncContainerGoods_CS.dwSrcContainerID, sSyncContainerGoods_CS.bySrcPlace, sSyncContainerGoods_CS.byDstPlace)); NetServiceManager.Instance.ContainerService.SendSSyncContainerGoods(sSyncContainerGoods_CS); }
/// <summary> /// 发送位置同步到服务器 /// </summary> public void SendSSyncContainerGoods(SSyncContainerGoods_CS sSyncContainerGoods_CS) { this.Request(sSyncContainerGoods_CS.GeneratePackage()); }