示例#1
0
    public void ClickGemStrengthen(int slot)
    {
        m_CurGemSlot = slot;
        CG_EQUIPBACK_GEM_COMBINE gemPacket = (CG_EQUIPBACK_GEM_COMBINE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_EQUIPBACK_GEM_COMBINE);

        gemPacket.SetEquipSlotIndex(m_CurEquipSlot);
        gemPacket.SetGemIndex(m_CurGemSlot);
        gemPacket.SetStuffguid(0);
        gemPacket.SendPacket();
    }
        public uint Execute(PacketDistributed ipacket)
        {
            CG_EQUIPBACK_GEM_COMBINE packet = (CG_EQUIPBACK_GEM_COMBINE )ipacket;

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