void ClickBuyBt()
 {
     //发包购买
     if (BlackMarketLogic.Instance() != null)
     {
         CG_BUY_BLACKMARKETITEM buyPak = (CG_BUY_BLACKMARKETITEM)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BUY_BLACKMARKETITEM);
         buyPak.Curpage   = BlackMarketLogic.Instance().CurPage;
         buyPak.ItemIndex = m_GoodInfo.ItemIndex;
         buyPak.UseYBType = BlackMarketLogic.Instance().UseYBType;
         buyPak.SendPacket();
     }
 }
Exemple #2
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_CLOSE_BLACKMARKET packet = (GC_CLOSE_BLACKMARKET)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            if (BlackMarketLogic.Instance() != null)
            {
                BlackMarketLogic.Instance().CloseWindow();
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_RET_BLACKMARKETITEMINFO packet = (GC_RET_BLACKMARKETITEMINFO)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            if (BlackMarketLogic.Instance() != null)
            {
                BlackMarketLogic.Instance().UpdateGoodInfo(packet);
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }