// 购买 void OnClickBuyItem( ) { CG_PVPSHOP_BUY pak = (CG_PVPSHOP_BUY)PacketDistributed.CreatePacket(MessageID.PACKET_CG_PVPSHOP_BUY); pak.ITEMID = m_BuyPvpId; pak.ITEMCOUNT = m_BuyItemNum; pak.SendPacket(); }
public uint Execute(PacketDistributed ipacket) { CG_PVPSHOP_BUY packet = (CG_PVPSHOP_BUY )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }