Exemple #1
0
    //更新现场 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);
    }
Exemple #2
0
 //下发竞拍结果数据//
 CommandCallbackType ReceiveAuctionResultHandle(byte[] dataBuffer, int sorketID)
 {
     AuctionModel.Instance.ReceiveAuctionResult(SAuctionGoods_SC.ParsePackage(dataBuffer));
     return(CommandCallbackType.Continue);
 }
Exemple #3
0
 //下发竞拍结果
 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);
 }