//更新现场 DAuctionUint public static SAuctionGoods_SC ParsePackage(byte[] dataBuffer) { SAuctionGoods_SC sAuctionGoods_SC = new SAuctionGoods_SC(); int offset = 0; offset += PackageHelper.ReadData(dataBuffer.Skip(offset).ToArray(), out sAuctionGoods_SC.byIndex); sAuctionGoods_SC.auction = DAuctionUint.ParsePackage(dataBuffer, ref offset); return(sAuctionGoods_SC); }
//下发竞拍结果数据// CommandCallbackType ReceiveAuctionResultHandle(byte[] dataBuffer, int sorketID) { AuctionModel.Instance.ReceiveAuctionResult(SAuctionGoods_SC.ParsePackage(dataBuffer)); return(CommandCallbackType.Continue); }
//下发竞拍结果 public void ReceiveAuctionResult(SAuctionGoods_SC sAuctionGoods_SC) { sAuctionOpenUI_SC.auctionMap.Remove(sAuctionGoods_SC.byIndex); sAuctionOpenUI_SC.auctionMap.Add(sAuctionGoods_SC.byIndex, sAuctionGoods_SC.auction); UIEventManager.Instance.TriggerUIEvent(UIEventType.ReceiveServerAuctionResult, sAuctionGoods_SC.byIndex); }